summaryrefslogtreecommitdiff
path: root/scripts/build/genCommitLog
blob: 318e2866a47d526b7751340d9964f13bbfdae750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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