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