Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / ntp / dist / scripts / genCommitLog
blob0acb05436ecbc21c491d847c73415c0be885ca3e
1 #! /bin/sh
3 set -e
5 GCL_REMOVEWRITE=0
6 . packageinfo.sh
7 if [ ! -w . ] ; then
8 GCL_REMOVEWRITE=1
9 chmod u+w .
10 [ -f CommitLog -a ! -w CommitLog ] && chmod u+w CommitLog
12 bk -R prs -hr${CLTAG}.. -nd':I:' | bk changes -m -v - > CommitLog.new
13 mv CommitLog.new CommitLog
14 case "$GCL_REMOVEWRITE" in
15 1) chmod a-w CommitLog .
16 esac