Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
1d3adef2
Commit
1d3adef2
authored
Feb 21, 2011
by
Tobias Hunger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Script: Update hasCopyright script
Update hasCopyright script to distinguish between no/wrong copyright.
parent
ed5f8004
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
scripts/hasCopyright.sh
scripts/hasCopyright.sh
+7
-4
No files found.
scripts/hasCopyright.sh
View file @
1d3adef2
...
...
@@ -9,11 +9,14 @@
for
i
in
$@
;
do
if
test
-f
"
$i
"
&&
test
-s
"
$i
"
;
then
if
head
-n
15
"
$i
"
|
grep
Copyright
>
/dev/null 2>&1
&&
head
-n
15
"
$i
"
|
grep
"No Commercial Usage"
>
/dev/null 2>&1
;
then
echo
"
$i
: Copyright
.
"
if
head
-n
15
"
$i
"
|
grep
Copyright
>
/dev/null 2>&1
;
then
if
head
-n
15
"
$i
"
|
grep
"No Commercial Usage"
>
/dev/null 2>&1
;
then
echo
"
$i
: Copyright
ok
"
else
echo
"
$i
: NO/WRONG COPYRIGHT."
echo
"
$i
: WRONG COPYRIGHT"
fi
else
echo
"
$i
: NO COPYRIGHT"
fi
fi
done
Write
Preview
Markdown
is supported
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