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