File: genchanges.sh

package info (click to toggle)
openafs 1.2.3final2-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 57,996 kB
  • ctags: 74,894
  • sloc: ansic: 387,313; cpp: 98,757; makefile: 9,333; sh: 7,814; perl: 6,524; yacc: 2,097; asm: 1,139; tcl: 249; csh: 123; lex: 106
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"