summaryrefslogtreecommitdiff
path: root/scripts/build/genCommitLog
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/genCommitLog')
-rwxr-xr-xscripts/build/genCommitLog16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/build/genCommitLog b/scripts/build/genCommitLog
new file mode 100755
index 0000000..318e286
--- /dev/null
+++ b/scripts/build/genCommitLog
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+set -e
+
+GCL_REMOVEWRITE=0
+. ./packageinfo.sh
+if [ ! -w . ] ; then
+ GCL_REMOVEWRITE=1
+ chmod u+w .
+ [ -f CommitLog -a ! -w CommitLog ] && chmod u+w CommitLog
+fi
+bk changes -v -m -r${CLTAG}.. > CommitLog.new
+mv CommitLog.new CommitLog
+case "$GCL_REMOVEWRITE" in
+ 1) chmod a-w CommitLog .
+esac