source: trunk/debathena/third/openafs/genchanges.sh @ 22775

Revision 22775, 560 bytes checked in by ghudson, 14 years ago (diff)
* debathena/third/openafs/hacked-arch/arch, debathena/third/openafs/genchanges.sh: Import supporting files I failed to include previously. * debathena/third/openafs/build-openafs: Use current working directory to find supporting files. Also fix a syntax error in a conditional. * debathena/third/openafs/upload-openafs: Allow apt repository location to be overridden with $DEBATHENA_APT.
Line 
1#!/bin/sh
2# genchanges.sh - generate a changes file for a deb file generated via
3#       the make-kpkg utility
4
5# KSRC, KVERS, KMAINT, and KEMAIL are expected to be passed through the
6# environment.
7
8set -e
9umask 022
10
11MODVERS=`cat debian/VERSION | sed s/:/\+/`
12ARCH=`dpkg --print-architecture`
13
14mprefix=`grep Package: debian/control.in | cut -d' ' -f 2 | cut -d= -f 1`
15chfile="$KSRC/../$mprefix${KVERS}${INT_SUBARCH}_${MODVERS}_${ARCH}.changes"
16
17dpkg-genchanges -b ${KMAINT:+-m"$KMAINT <$KEMAIL>"} -u"$KSRC/.." \
18    -cdebian/control > "$chfile"
19#debsign "$chfile"
20
Note: See TracBrowser for help on using the repository browser.