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

fixed remove_preamble_license

parent 4377c37c
......@@ -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"
echo "Done!"
sed -i '/\/\*.*\*\// d; /\/\*/,/\*\// d' "$f"
echo "Done!"
else
echo "License-preamble was not found in $f"
echo "No license-preamble is removed."
......
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