diff options
Diffstat (limited to 'copyright')
-rwxr-xr-x | copyright | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -2,16 +2,23 @@ # Manage build2 toolchain copyright. # +# NOTES: +# +# 1. Update the style submodule first. +# 2. Check if any new submodules that need to be excluded (below). +# 3. After first run, regenerate docs, and run again. +# 4. Review changes before committing. +# # Usage: copyright # usage="usage: $0" -old=2015 -new=2016 +old=2016 +new=2017 # In extras we just grep for the old date. # -modules="libbutl build2 libbpkg bpkg brep build2-toolchain" +modules="libbutl build2 libbpkg bpkg brep build2-toolchain msvc-linux" extras="etc private" owd=`pwd` @@ -28,7 +35,7 @@ function ised () # <regex> <file> { local r=$1 local f=$2 - local o=$f.orig + local o=$f.ised-orig mv $f $o cp -p $o $f # Keep owner, permissions. @@ -50,9 +57,11 @@ for m in $modules; do # exclude=.git - # Exclude submodules in build2-toolchain. + # Exclude submodules. # - if [ $m = "build2-toolchain" ]; then + if [ $m = "build2" ]; then + exclude="$exclude config" + elif [ $m = "build2-toolchain" ]; then exclude="$exclude bpkg build2 libbutl libbpkg" fi |