* Don't use bash explicitly

* Don't put the signer's name into the SignWith field, use the email address instead to avoid problems with spaces
This commit is contained in:
HungryHobo
2010-11-24 17:45:13 +00:00
parent 838da762f8
commit 58da5d7942

6
debian/makerepo.sh vendored
View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
# This script creates a Debian repository in ${DIR} using the reprepro tool. # This script creates a Debian repository in ${DIR} using the reprepro tool.
# The packages are signed with the key referenced in the newest changelog entry. # The packages are signed with the key referenced in the newest changelog entry.
@@ -9,9 +9,7 @@ DIR=./repo
CONFDIR=conf CONFDIR=conf
CONFFILE=${CONFDIR}/distributions CONFFILE=${CONFDIR}/distributions
SIGNER=`parsechangelog --file changelog | grep Maintainer | cut -d: -f2` SIGNER=`parsechangelog --file changelog | grep Maintainer | cut -d\< -f2 | cut -d\> -f1`
SIGNER=${SIGNER//^ /}
SIGNER=`echo ${SIGNER} | cut -d\ -f1`
KEYID=`gpg --list-keys "${SIGNER}" | cut -d: -f2 | grep -w pub | cut -d/ -f2 | cut -d\ -f1` KEYID=`gpg --list-keys "${SIGNER}" | cut -d: -f2 | grep -w pub | cut -d/ -f2 | cut -d\ -f1`
echo Using signing key: ${SIGNER} echo Using signing key: ${SIGNER}
echo Key ID: ${KEYID} echo Key ID: ${KEYID}