File: genchanges.sh

package info (click to toggle)
openafs 1.3.81-3sarge3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 64,948 kB
  • ctags: 86,354
  • sloc: ansic: 451,050; cpp: 103,220; sh: 9,324; makefile: 8,940; perl: 7,275; java: 5,247; asm: 1,279; yacc: 983; lex: 318; tcl: 249; objc: 135; csh: 123
file content (22 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# genchanges.sh - generate a changes file for a deb file generated via
#	the make-kpkg utility

# KSRC KMAINT and KEMAIL are expected to be passed through the environment

set -e
umask 022

#KVERS=`cat debian/KVERS`
MODVERS=`cat debian/VERSION | sed s/:/\+/`
ARCH=`dpkg --print-architecture`

mprefix=`grep Package: debian/control.module | cut -d' ' -f 2 | cut -d= -f 1`

# the changes file's name
chfile="$KSRC/../$mprefix${KVERS}${INT_SUBARCH}_${MODVERS}_${ARCH}.changes"

dpkg-genchanges -b ${KMAINT:+-m"$KMAINT <$KEMAIL>"} -u"$KSRC/.." \
	-cdebian/control > "$chfile"
#pgp -fast ${KMAINT:+-u"$KMAINT"} < "$chfile.pt" > "$chfile"
rm "$chfile.pt"