1 1.1 christos #! /bin/sh 2 1.1 christos 3 1.1 christos set -e 4 1.1 christos 5 1.1 christos GCL_REMOVEWRITE=0 6 1.1 christos . ./packageinfo.sh 7 1.1 christos if [ ! -w . ] ; then 8 1.1 christos GCL_REMOVEWRITE=1 9 1.1 christos chmod u+w . 10 1.1 christos [ -f CommitLog -a ! -w CommitLog ] && chmod u+w CommitLog 11 1.1 christos fi 12 1.1 christos bk changes -v -m -r${CLTAG}.. > CommitLog.new 13 1.1 christos mv CommitLog.new CommitLog 14 1.1 christos case "$GCL_REMOVEWRITE" in 15 1.1 christos 1) chmod a-w CommitLog . 16 1.1 christos esac 17