summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/build b/build
index ee53ec8..222d9ed 100755
--- a/build
+++ b/build
@@ -53,8 +53,17 @@ then
apt-get update
apt-get upgrade
fi
-apt --only-source build-dep $pkg
-apt --only-source source $pkg
+
+# stretch needs --only-source (at least for rkward source packages), jessie
+# does not know this argument
+if [ $DIST == "jessie" ]; then
+ apt-get build-dep $pkg
+ apt-get source $pkg
+fi
+if [ $DIST == "stretch" ]; then
+ apt --only-source build-dep $pkg
+ apt --only-source source $pkg
+fi
# Move sources to $DIST directory to enable parallel builds
mkdir -p $DIST

Contact - Imprint