File: update_copyright.sh

package info (click to toggle)
gmerlin-avdecoder 2.0.0~svn6298~dfsg0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,112 kB
  • sloc: ansic: 94,580; sh: 705; makefile: 705; awk: 43; sed: 16
file content (7 lines) | stat: -rwxr-xr-x 246 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
#!/bin/sh
NEW_YEAR=`date +%Y`
OLD_YEAR=`echo "$NEW_YEAR - 1" | bc`
OLD_YEARS="2001 - $OLD_YEAR"
NEW_YEARS="2001 - $NEW_YEAR"
echo "Replacing \"$OLD_YEARS\" with \"$NEW_YEARS\""
find . -name '*.[ch]' -exec sed -i "s/$OLD_YEARS/$NEW_YEARS/g" {} \;