File: genchanges.sh

package info (click to toggle)
nvidia-kernel-src 1.0.2880-1
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 92 kB
  • ctags: 3
  • sloc: makefile: 147; sh: 73
file content (25 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# genchanges.sh - generate a changes file for a deb file generated via
#      the make-kpkg utility

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

set -e
umask 022

VERS=`dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2`
ARCH=`dpkg --print-architecture`

# the changes file's name
chfile="$KSRC/../lm-sensors-${KVERS}_${VERS}+${REV}_${ARCH}.changes"

dpkg-genchanges -b ${KMAINT:+-m"$KMAINT <$KEMAIL>"} -u"$KSRC/.." > "$chfile.pt"
if test -e "${GNUPGHOME:-$HOME/.gnupg/secring.gpg}"; then
	gpg -ast ${KMAINT:+-u"$KMAINT"} \
		--clearsign < "$chfile.pt" > "$chfile"
else
	pgp -fast ${KMAINT:+-u"$KMAINT"} +clearsig=on \
		< "$chfile.pt" > "$chfile"
fi
rm "$chfile.pt"