blob: 6c5cdc323a0a273b1217b2054e74138215d78b8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
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"
else
echo "adding license text to $i"
cat shortlicense >/tmp/deadbeef.lic.tmp
cat "$i" >>/tmp/deadbeef.lic.tmp
mv /tmp/deadbeef.lic.tmp "$i"
fi
done
|