Commit b2cff184 authored by Leonardo Solis's avatar Leonardo Solis
Browse files

clean add_preamble_license

parent c908c2bc
......@@ -41,15 +41,12 @@ for f in $OCLADOCK_SOURCE; do
if (grep -q "Copyright (C)" $f); then
echo "License-preamble is already present in $f"
echo "No license-preamble is added."
cat $f > $f.oldlic
awk '/^\/\*/{c++} c!=1; /^ \*\//{c++}' "$f" > $f
echo "Done!"
echo "Mo license-preamble is added."
echo "Adding license-preamble to $f ..."
cat $f > $f.nolic
cat $LICENSE_PREAMBLE "$f" > "$"
mv $ $f
rm $
echo "Done!"
echo " "
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment