1 parent 0b59984 commit e4ddde5Copy full SHA for e4ddde5
1 file changed
createrelease
@@ -45,7 +45,7 @@
45
# cd ~/cppchecksolutions/cppcheck && python3 tools/get_checkers.py > lib/checkers.cpp
46
#
47
# Update copyright year: TODO release script
48
-# git diff $PREV -- */*.cpp */*.h | grep '^diff --git a/' | sed 's|.* b/||' | xargs sed -i "s/Copyright (C) 2007-20[12]./Copyright (C) 2007-$(date +%Y)/"
+# git grep -l 'Copyright (C) 2007-20' -- '*.cpp' '*.h' '*.py' | while read f; do y=$(git log -1 --format=%ad --date=format:%Y --invert-grep -i --grep=copyright -- "$f"); sed -i "s/Copyright (C) 2007-20[0-9][0-9]/Copyright (C) 2007-$y/" "$f"; done
49
# git diff | grep '^diff --git a/'
50
51
# Make sure "cppcheck --errorlist" works:
0 commit comments