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

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!"
echo "License-preamble was not found in $f"
echo "No license-preamble is removed."
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