Commit b2cff184 authored by Leonardo Solis's avatar Leonardo Solis

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."
else
echo "Adding license-preamble to $f ..."
cat $LICENSE_PREAMBLE $f > $f.new
cat $f > $f.nolic
cat $LICENSE_PREAMBLE "$f" > "$f.new"
mv $f.new $f
rm $f.new
echo "Done!"
fi
echo " "
......
Markdown is supported
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