summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-07-03 17:39:55 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-07-03 17:39:55 +0200
commit41e449dcf22e8b0ce4996d532c5e7d3547dde06c (patch)
tree5a564d3eacb0e50ed7abf95f74373484e7252d31
parent7b1ad9af8f929e746a5a3822c21fc2ff746bfa5c (diff)
downloadbuildscripts-41e449dcf22e8b0ce4996d532c5e7d3547dde06c.tar.gz
buildscripts-41e449dcf22e8b0ce4996d532c5e7d3547dde06c.tar.bz2
buildscripts-41e449dcf22e8b0ce4996d532c5e7d3547dde06c.zip
add armel et al build support
-rwxr-xr-xbin/x2go-build-package38
1 files changed, 28 insertions, 10 deletions
diff --git a/bin/x2go-build-package b/bin/x2go-build-package
index 57124c4..00c5151 100755
--- a/bin/x2go-build-package
+++ b/bin/x2go-build-package
@@ -52,6 +52,10 @@ set_vars() {
DIST_SUPPORTED="debian ubuntu"
PKGDIST="$HOME/pkg-dist/$COMPONENT/$PROJECT"
+ # build for other architectures than amd64/i386
+ EXTRA_ARCHS="${EXTRA_ARCHS:-''}"
+ EXTRA_ARCHS_ONLY="${EXTRA_ARCHS_ONLY:-''}"
+
# creating paths
mkdir -p "$TEMP_BASE"
mkdir -p $PROJECT_DIR
@@ -138,20 +142,34 @@ build_packages() {
mkdir -p $PKGDIST/$l_DIST/$l_CODENAME/{amd64,i386}
OTHERMIRROR="deb http://packages.x2go.org/debian $l_CODENAME $COMPONENT"
[ "x$USE_SUDO" != "xyes" ] && {
- cat debian/control | egrep 'Architecture.*(all|any|amd64)' >/dev/null && {
- DIST=$l_DIST CODENAME=$l_CODENAME ARCH=amd64 $PDEBUILD --auto-debsign --debsign-k F4A7678C9C6B0B2B --buildresult $PKGDIST/$l_DIST/$l_CODENAME/amd64
- }
- cat debian/control | egrep 'Architecture.*(any|i386)' >/dev/null && {
- DIST=$l_DIST CODENAME=$l_CODENAME ARCH=i386 $PDEBUILD --auto-debsign --debsign-k F4A7678C9C6B0B2B --buildresult $PKGDIST/$l_DIST/$l_CODENAME/i386 -- --binary-arch
+ test -n $EXTRA_ARCHS_ONLY && {
+ cat debian/control | egrep 'Architecture.*(all|any|amd64)' >/dev/null && {
+ DIST=$l_DIST CODENAME=$l_CODENAME ARCH=amd64 $PDEBUILD --auto-debsign --debsign-k F4A7678C9C6B0B2B --buildresult $PKGDIST/$l_DIST/$l_CODENAME/amd64
+ }
+ cat debian/control | egrep 'Architecture.*(any|i386)' >/dev/null && {
+ DIST=$l_DIST CODENAME=$l_CODENAME ARCH=i386 $PDEBUILD --auto-debsign --debsign-k F4A7678C9C6B0B2B --buildresult $PKGDIST/$l_DIST/$l_CODENAME/i386 -- --binary-arch
+ }
}
+ for extra_arch in $EXTRA_ARCHS; do
+ cat debian/control | egrep "Architecture.*(any|$extra_arch)" >/dev/null && {
+ DIST=$l_DIST CODENAME=$l_CODENAME ARCH=$extra_arch $PDEBUILD --auto-debsign --debsign-k F4A7678C9C6B0B2B --buildresult $PKGDIST/$l_DIST/$l_CODENAME/$extra_arch -- --binary-arch
+ }
+ done
}
[ "x$USE_SUDO" = "xyes" ] && {
- 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 F4A7678C9C6B0B2B --buildresult $PKGDIST/$l_DIST/$l_CODENAME/amd64
- }
- 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 F4A7678C9C6B0B2B --buildresult $PKGDIST/$l_DIST/$l_CODENAME/i386 -- --binary-arch
+ test -n $EXTRA_ARCHS_ONLY && {
+ 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 F4A7678C9C6B0B2B --buildresult $PKGDIST/$l_DIST/$l_CODENAME/amd64
+ }
+ 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 F4A7678C9C6B0B2B --buildresult $PKGDIST/$l_DIST/$l_CODENAME/i386 -- --binary-arch
+ }
}
+ for extra_arch in $EXTRA_ARCHS; do
+ cat debian/control | egrep "Architecture.*(any|$extra_arch)" >/dev/null && {
+ sudo DIST=$l_DIST CODENAME=$l_CODENAME ARCH=$extra_arch OTHERMIRROR="$OTHERMIRROR" $PDEBUILD --auto-debsign --debsign-k F4A7678C9C6B0B2B --buildresult $PKGDIST/$l_DIST/$l_CODENAME/$extra_arch -- --binary-arch
+ }
+ done
}
cd -
rm -Rf $TEMP_DIR