File: genCommitLog

package info (click to toggle)
ntp 1%3A4.2.8p15%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 32,776 kB
  • sloc: ansic: 242,968; sh: 6,859; makefile: 3,419; perl: 2,765; yacc: 1,524; python: 1,486; ruby: 817; awk: 417; sed: 47; asm: 37
file content (16 lines) | stat: -rwxr-xr-x 324 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /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