Commit 29751e92 authored by Leonardo Solis's avatar Leonardo Solis
Browse files

fixed remove_preamble_license

parent 4377c37c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -41,10 +41,8 @@ for f in $OCLADOCK_SOURCE; do

		if (grep -q "Copyright (C)" $f); then
			echo "Removing existing license-preamble from $f"
			awk '/^\/\*/{c++} c!=1; /^ \*\//{c++}' "$f" > "$f.old"
			mv "$f.old" "$f"
			sed -i '/\/\*.*\*\// d; /\/\*/,/\*\// d' "$f"
			echo "Done!"	
			
		else
			echo "License-preamble was not found in $f"
			echo "No license-preamble is removed."