xref: /freebsd/contrib/ntp/scripts/build/genCommitLog (revision 8aac90f18aef7c9eea906c3ff9a001ca7b94f375)
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