BUG: pre-commit-hook: was expecting YYYY-YYYY instead of just YYYY

This commit is contained in:
mattijs 2011-08-17 14:53:46 +01:00
parent cd8e5c5485
commit 9f7fcc686c

View File

@ -273,7 +273,7 @@ checkCopyright()
for f in $fileList
do
sYear=`grep "Copyright.*OpenFOAM" $f | sed 's/[^0-9]//g' | cut -c 5-9`
sYear=`grep "Copyright.*OpenFOAM" $f | sed 's/[^0-9]//g'`
if [ "$year" != "" ] && [ "$year" != "$sYear" ]; then
echo "Updated copyright for: $f"
sed -i "s/$sYear OpenFOAM/$year OpenFOAM/g" $f