summaryrefslogtreecommitdiffstats
path: root/scripts/genCommitLog
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/genCommitLog')
-rwxr-xr-xscripts/genCommitLog13
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/genCommitLog b/scripts/genCommitLog
index 2a258ad..318e286 100755
--- a/scripts/genCommitLog
+++ b/scripts/genCommitLog
@@ -2,6 +2,15 @@
set -e
-. packageinfo.sh
-bk -R prs -hr${CLTAG}.. -nd':I:' | bk changes -m -v - > CommitLog.new
+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
OpenPOWER on IntegriCloud