File: genchanges.sh

package info (click to toggle)
alsa-driver 0.9%2B0beta12-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,524 kB
  • ctags: 29
  • sloc: sh: 982; makefile: 283
file content (27 lines) | stat: -rw-r--r-- 704 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
26
27
#!/bin/bash
# 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/MODVERS | sed s/:/\+/`
ARCH=`dpkg --print-architecture`

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

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

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

dpkg-genchanges -b -u"$KSRC/.." \
	-cdebian/control > "$chfile"

if [ -x /usr/bin/debsign ]; then
  debsign ${KMAINT:+-m"$KMAINT"} "$chfile"
fi