Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
docking
ocladock
Commits
29751e92
Commit
29751e92
authored
Oct 09, 2017
by
Leonardo Solis
Browse files
fixed remove_preamble_license
parent
4377c37c
Changes
1
Hide whitespace changes
Inline
Side-by-side
remove_preamble_license.sh
View file @
29751e92
...
...
@@ -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."
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment