summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-01-18 22:05:12 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2012-01-18 22:05:12 +0100
commit899d3c0e68e10d343fb52ba26c3cd6bc61e634e9 (patch)
treeaf800dede30ab848e5d51316e5ad221b159ae720
parentafb2b22095cbfbf5aeb04aefc224e0bb1bf21919 (diff)
downloadbuildscripts-899d3c0e68e10d343fb52ba26c3cd6bc61e634e9.tar.gz
buildscripts-899d3c0e68e10d343fb52ba26c3cd6bc61e634e9.tar.bz2
buildscripts-899d3c0e68e10d343fb52ba26c3cd6bc61e634e9.zip
introduce a SKIP_ARCH environment variable
-rwxr-xr-xbin/build-package8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/build-package b/bin/build-package
index 7d7977f..903fc40 100755
--- a/bin/build-package
+++ b/bin/build-package
@@ -201,10 +201,10 @@ build_packages() {
[ "x$USE_SUDO" != "xyes" ] && {
[ "x$EXTRA_ARCHS_ONLY" = "x" ] && {
- cat debian/control | egrep 'Architecture.*(all|any|amd64)' >/dev/null && {
+ [ "x$SKIP_ARCH" != "amd64" ] && cat debian/control | egrep 'Architecture.*(all|any|amd64)' >/dev/null && {
DIST=$l_DIST CODENAME=$l_CODENAME ARCH=amd64 $PDEBUILD --auto-debsign --debsign-k $GPG_KEY --buildresult "$PKGDIST/$l_DIST/$l_CODENAME/amd64" 0<&-
}
- cat debian/control | egrep 'Architecture.*(any|i386)' >/dev/null && {
+ [ "x$SKIP_ARCH" != "i386" ] && cat debian/control | egrep 'Architecture.*(any|i386)' >/dev/null && {
DIST=$l_DIST CODENAME=$l_CODENAME ARCH=i386 $PDEBUILD --auto-debsign --debsign-k $GPG_KEY --buildresult "$PKGDIST/$l_DIST/$l_CODENAME/i386" -- --binary-arch 0<&-
}
}
@@ -217,10 +217,10 @@ build_packages() {
}
[ "x$USE_SUDO" = "xyes" ] && {
[ "x$EXTRA_ARCHS_ONLY" = "x" ] && {
- cat debian/control | egrep 'Architecture.*(all|any|amd64)' >/dev/null && {
+ [ "x$SKIP_ARCH" != "amd64" ] && cat debian/control | egrep 'Architecture.*(all|any|amd64)' >/dev/null && {
sudo DIST=$l_DIST CODENAME=$l_CODENAME ARCH=amd64 OTHERMIRROR="$OTHERMIRROR" $PDEBUILD --auto-debsign --debsign-k $GPG_KEY --buildresult $PKGDIST/$l_DIST/$l_CODENAME/amd64 0<&-
}
- cat debian/control | egrep 'Architecture.*(any|i386)' >/dev/null && {
+ [ "x$SKIP_ARCH" != "i386" ] && cat debian/control | egrep 'Architecture.*(any|i386)' >/dev/null && {
sudo DIST=$l_DIST CODENAME=$l_CODENAME ARCH=i386 OTHERMIRROR="$OTHERMIRROR" $PDEBUILD --auto-debsign --debsign-k $GPG_KEY --buildresult $PKGDIST/$l_DIST/$l_CODENAME/i386 -- --binary-arch 0<&-
}
}