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