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

clean add_preamble_license

parent c908c2bc
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -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 " "