freebsd-dev/contrib/ntp/scripts/build/genCommitLog
Cy Schubert 2b15cb3d09 MFV ntp 4.2.8p1 (r258945, r275970, r276091, r276092, r276093, r278284)
Thanks to roberto for providing pointers to wedge this into HEAD.

Approved by:	roberto
2015-03-30 13:30:15 +00:00

17 lines
324 B
Bash
Executable File

#! /bin/sh
set -e
GCL_REMOVEWRITE=0
. ./packageinfo.sh
if [ ! -w . ] ; then
GCL_REMOVEWRITE=1
chmod u+w .
[ -f CommitLog -a ! -w CommitLog ] && chmod u+w CommitLog
fi
bk changes -v -m -r${CLTAG}.. > CommitLog.new
mv CommitLog.new CommitLog
case "$GCL_REMOVEWRITE" in
1) chmod a-w CommitLog .
esac