summaryrefslogtreecommitdiff
path: root/insertlicense.sh
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-19 19:38:30 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-19 19:38:30 +0200
commitd05573578335034855b923945bb1602e21594739 (patch)
tree30a0a089a9d707772a7a8b63d23fe68666dbd566 /insertlicense.sh
parent35896557539ab3159e38b105e0099eba5ad42805 (diff)
license update
Diffstat (limited to 'insertlicense.sh')
-rwxr-xr-xinsertlicense.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/insertlicense.sh b/insertlicense.sh
index 6c5cdc32..53400b91 100755
--- a/insertlicense.sh
+++ b/insertlicense.sh
@@ -3,7 +3,12 @@ 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
- echo "skipping file $i"
+ 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"
+ fi
else
echo "adding license text to $i"
cat shortlicense >/tmp/deadbeef.lic.tmp