diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2012-04-06 14:50:16 +0200 |
---|---|---|
committer | X2Go Admin Account <x2go-admin@Debian-60-squeeze-64-minimal.(none)> | 2012-04-06 14:50:16 +0200 |
commit | f4331ab1477831b4f69938d3134d9fe7a167bdf9 (patch) | |
tree | d8ec2795580e2ea84cae1eec37037423652fb1d5 /bin/build-package | |
parent | f277336772b21b7e39126b2f5cd4a1e47f7cc264 (diff) | |
download | buildscripts-f4331ab1477831b4f69938d3134d9fe7a167bdf9.tar.gz buildscripts-f4331ab1477831b4f69938d3134d9fe7a167bdf9.tar.bz2 buildscripts-f4331ab1477831b4f69938d3134d9fe7a167bdf9.zip |
add detection code for BUILDS_FOR file
Diffstat (limited to 'bin/build-package')
-rwxr-xr-x | bin/build-package | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/build-package b/bin/build-package index 4b0ed8c..3e15745 100755 --- a/bin/build-package +++ b/bin/build-package @@ -24,6 +24,8 @@ DEBEMAIL="firstname.lastname@mydomain.org" DEBFULLNAME="Firstname Lastname" GPG_KEY= DISTS_SUPPORTED="debian ubuntu" +DEBIAN_DISTROS="lenny squeeze wheezy sid" +UBUNTU_DISTROS="lucid maverick natty oneiric precise" BUILDS_FOR="\ debian: squeeze wheezy sid\n\ ubuntu: lucid precise\n\ @@ -109,7 +111,13 @@ prepare_workspace() { cd "$PROJECT_DIR" # by default we build for all current debian versions - test -f BUILDS_FOR || echo -e "$BUILDS_FOR" > BUILDS_FOR + if test -z $ARGV2_CODENAME; then + test -f BUILDS_FOR || echo -e "$BUILDS_FOR" > BUILDS_FOR + elif echo "$DEBIAN_DISTROS" | grep $ARGV2_CODENAME >/dev/null; then + echo "debian: $ARGV2_CODENAME" > BUILDS_FOR + elif echo "$UBUNUT_DISTROS" | grep $ARGV2_CODENAME >/dev/null; then + echo "ubuntu: $ARGV2_CODENAME" >/dev/null + fi return 0 } |