diff options
author | waker <wakeroid@gmail.com> | 2009-08-20 21:06:43 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-20 21:06:43 +0200 |
commit | da5f0b416df7d721310ef07f3006da561174a712 (patch) | |
tree | f3cb0166b3e7c2917b331bb2926131fcea8f17bc /insertlicense.sh | |
parent | 429f0b3d8b051fd992166fcfcd4a38e9aa763833 (diff) |
fixed bug in cvorbis_init preventing some songs from playing
Diffstat (limited to 'insertlicense.sh')
-rwxr-xr-x | insertlicense.sh | 6 |
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" |