xref: /freebsd/contrib/ntp/scripts/build/genCommitLog (revision 416ba5c74546f32a993436a99516d35008e9f384)
1#! /bin/sh
2
3set -e
4
5GCL_REMOVEWRITE=0
6. ./packageinfo.sh
7if [ ! -w . ] ; then
8        GCL_REMOVEWRITE=1
9        chmod u+w .
10        [ -f CommitLog -a ! -w CommitLog ] && chmod u+w CommitLog
11fi
12bk changes -v -m -r${CLTAG}.. > CommitLog.new
13mv CommitLog.new CommitLog
14case "$GCL_REMOVEWRITE" in
15 1) chmod a-w CommitLog .
16esac
17