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
PIM
KPkPass
Commits
36136dbd
Commit
36136dbd
authored
Aug 17, 2020
by
Volker Krause
Browse files
Don't duplicate SPDX headers
parent
9b823b74
Pipeline
#30926
passed with stage
in 1 minute and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
add_license.sh
View file @
36136dbd
#!/bin/bash
find
"
$@
"
-name
'*.h'
-o
-name
'*.cpp'
-o
-name
'*.qml'
|
grep
-v
/3rdparty/ |
while
read
FILE
;
do
if
grep
-qiE
"SPDX"
"
$FILE
"
;
then continue
;
fi
if
grep
-qiE
"Copyright
\(
C
\)
[0-9, -]{4,} "
"
$FILE
"
;
then continue
;
fi
thisfile
=
`
basename
$FILE
`
authorName
=
`
git config user.name
`
...
...
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