summaryrefslogtreecommitdiffstats
path: root/debian/buildsys-select.sh
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-10-29 21:12:39 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-10-29 21:12:39 +0000
commita5ac33e90dfdd61062d22ad73f93edd57aedf3ae (patch)
treeeabaadb2a1d2685c8b0c9daade619903766002e6 /debian/buildsys-select.sh
parent656d9d1b091718294681d13cf502071b87cbacb6 (diff)
downloadbcfg2-a5ac33e90dfdd61062d22ad73f93edd57aedf3ae.tar.gz
bcfg2-a5ac33e90dfdd61062d22ad73f93edd57aedf3ae.tar.bz2
bcfg2-a5ac33e90dfdd61062d22ad73f93edd57aedf3ae.zip
Add new Debian packaging from Sami Haahtinen
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5512 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'debian/buildsys-select.sh')
-rwxr-xr-xdebian/buildsys-select.sh64
1 files changed, 0 insertions, 64 deletions
diff --git a/debian/buildsys-select.sh b/debian/buildsys-select.sh
deleted file mode 100755
index 291d669f6..000000000
--- a/debian/buildsys-select.sh
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/sh
-#
-# This script will select the build target, which is one of:
-# 2.3 - Build for python2.3
-# 2.4 - Build for python2.4
-# pycentral - Build with python-central support
-
-FILES="control.in bcfg2.init bcfg2-server.init pycompat compat"
-SUITE=$1
-
-if [ ! -d buildsys ]; then
- echo "you need to be in debian/ directory"
- exit 1
-fi
-
-copy_files() {
- for i in $FILES; do
- if [ -e buildsys/$SUITE/$i ]; then
- cp buildsys/$SUITE/$i $i
- else
- cp buildsys/common/$i $i
- fi
- done
-}
-
-toggle_DPS() {
- case $1 in
- enable)
- sed -i -e 's/^#DEB_PYTHON_SYSTEM/DEB_PYTHON_SYSTEM/' rules
- ;;
- disable)
- sed -i -e 's/^DEB_PYTHON_SYSTEM/#DEB_PYTHON_SYSTEM/' rules
- ;;
- *)
- echo "internal error!"
- exit 1
- ;;
- esac
-}
-
-generate_control() {
- cp control.in control
- if [ "$SUITE" = "pycentral" ]; then
- toggle_DPS enable
- else
- toggle_DPS disable
- fi
- cd .. && DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
-}
-
-case $SUITE in
- 2.3|2.4|pycentral)
- copy_files
- generate_control
- ;;
- clean)
- rm $FILES control
- toggle_DPS enable
- echo "removed build files, select a build system to enable build"
- ;;
- *)
- echo "Usage: $0 2.3|2.4|pycentral|clean"
- ;;
-esac