summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcopyright21
-rw-r--r--doc/bash-style.cli2
2 files changed, 16 insertions, 7 deletions
diff --git a/copyright b/copyright
index 3c8488b..eb59d24 100755
--- a/copyright
+++ b/copyright
@@ -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
diff --git a/doc/bash-style.cli b/doc/bash-style.cli
index 7aa2eaa..9d44374 100644
--- a/doc/bash-style.cli
+++ b/doc/bash-style.cli
@@ -1,5 +1,5 @@
// file : doc/bash-style.cli
-// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
"\title=Bash Style Guide"