summaryrefslogtreecommitdiff
path: root/insertlicense.sh
diff options
context:
space:
mode:
Diffstat (limited to 'insertlicense.sh')
-rwxr-xr-xinsertlicense.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/insertlicense.sh b/insertlicense.sh
index 53400b91..904e10cd 100755
--- a/insertlicense.sh
+++ b/insertlicense.sh
@@ -2,12 +2,14 @@
echo "IMPORTANT: Hit C-c if you forgot to backup/commit stuff!!!"
read
ls *.c *.h *.cpp | while read i; do
- if grep --silent "DO NOT EDIT" "$i" || grep --silent "DeaDBeeF - ultimate music player for GNU/Linux systems with X11" "$i" ; then
+ if [ "$i" == "config.h" ] || grep --silent "DO NOT EDIT" "$i" ; then
+ echo "skipping $i (blacklist)"
+ elif grep --silent "DeaDBeeF - ultimate music player for GNU/Linux systems with X11" "$i" ; then
if grep --silent "version 3 of the License" "$i" ; then
echo "changing $i to gpl2"
sed -i 's/version 3 of the License/version 2 of the License/' "$i"
else
- echo "skipping file $i"
+ echo "skipping $i (already has license)"
fi
else
echo "adding license text to $i"