]> git.ipfire.org Git - thirdparty/sarg.git/blob - updatecyear.sh
Add support to decompress xz files
[thirdparty/sarg.git] / updatecyear.sh
1 #!/bin/sh
2
3 Year=$(date "+%Y")
4 if [ -z "$Year" ] ; then
5 echo "Invalid year returned by date command: $Year"
6 exit 1
7 fi
8
9 perl -p -i -e "s/(^ \*\s{50,}\d{4},) 20\d{2}/\1 $Year/" *.c