summaryrefslogtreecommitdiff
path: root/scripts/dpkg-buildpackage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dpkg-buildpackage.sh')
-rwxr-xr-xscripts/dpkg-buildpackage.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/dpkg-buildpackage.sh b/scripts/dpkg-buildpackage.sh
index 21992e425..4ae72dab0 100755
--- a/scripts/dpkg-buildpackage.sh
+++ b/scripts/dpkg-buildpackage.sh
@@ -17,6 +17,7 @@ Options: -r<gain-root-command>
-k<keyid> the key to use for signing
-sgpg the sign-command is called like GPG
-spgp the sign-command is called like PGP
+ -sdebsign the sign-command works like debsign
-us unsigned source
-uc unsigned changes
-a<arch> Debian architecture we build for
@@ -65,6 +66,7 @@ do
-k*) signkey="$value" ;;
-sgpg) forcesigninterface=gpg ;;
-spgp) forcesigninterface=pgp ;;
+ -sdebsign) forcesigninterface=debsign ;;
-us) signsource=: ;;
-uc) signchanges=: ;;
-ap) usepause="true";;
@@ -92,6 +94,9 @@ if test -n "$forcesigninterface" ; then
else
signinterface=$signcommand
fi
+if test "$signinterface" = "debsign"; then
+ signsource=:
+fi
mustsetvar () {
if [ "x$2" = x ]; then
@@ -124,6 +129,13 @@ signfile () {
(cat "../$1" ; echo "") | \
$signcommand --local-user "${signkey:-$maintainer}" --clearsign --armor \
--textmode > "../$1.asc"
+ elif test "$signinterface" = "debsign"; then
+ if test x$signkey != x; then
+ $signcommand -k"$signkey" ../$1
+ else
+ $signcommand ../$1
+ fi
+ return
else
$signcommand -u "${signkey:-$maintainer}" +clearsig=on -fast <"../$1" \
>"../$1.asc"