aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/pd-extended-auto-builder.sh
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-09-28 18:27:41 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-09-28 18:27:41 +0000
commitefee3365fb49e92851b4c1e4c7c21208b97f60e5 (patch)
treebfb19105a5a5e62f83f6080fb0227ebb4ee67363 /scripts/auto-build/pd-extended-auto-builder.sh
parentfcd4467d613594d8a71aaf6050e42f29c9ab465b (diff)
fixed up for windows
svn path=/trunk/; revision=6046
Diffstat (limited to 'scripts/auto-build/pd-extended-auto-builder.sh')
-rwxr-xr-xscripts/auto-build/pd-extended-auto-builder.sh54
1 files changed, 34 insertions, 20 deletions
diff --git a/scripts/auto-build/pd-extended-auto-builder.sh b/scripts/auto-build/pd-extended-auto-builder.sh
index 5d918e98..e0f32862 100755
--- a/scripts/auto-build/pd-extended-auto-builder.sh
+++ b/scripts/auto-build/pd-extended-auto-builder.sh
@@ -8,6 +8,27 @@ TIME=`date +%H.%M.%S`
SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'`
+BUILD_DIR=.
+case $SYSTEM in
+ Linux)
+ BUILD_DIR=linux_make
+ ;;
+ Darwin)
+ BUILD_DIR=darwin_app
+ ;;
+ MINGW*)
+ BUILD_DIR=win32_inno
+ ;;
+ CYGWIN*)
+ BUILD_DIR=win32_inno
+ ;;
+ *)
+ echo "ERROR: Platform $SYSTEM not supported!"
+ exit
+ ;;
+esac
+
+
# convert into absolute path
cd `echo $0 | sed 's|\(.*\)/.*$|\1|'`/../..
auto_build_root_dir=`pwd`
@@ -17,17 +38,6 @@ echo "root: $auto_build_root_dir"
rsync -av --delete rsync://128.238.56.50/distros/pd-extended/ \
${auto_build_root_dir}/
-BUILD_DIR=.
-if [ "$SYSTEM" == "Linux" ]; then
- BUILD_DIR=linux_make
-fi
-if [ "$SYSTEM" == "Darwin" ]; then
- BUILD_DIR=darwin_app
-fi
-if [ "`echo $SYSTEM | sed -n 's|\(MINGW\)|\1|p'`" == "MINGW" ]; then
- BUILD_DIR=win32_inno
-fi
-
cd "${auto_build_root_dir}/packages/$BUILD_DIR"
make -C "${auto_build_root_dir}/packages" patch_pd
make install && make package && make test_package
@@ -48,13 +58,17 @@ upload_build ()
rsync://128.238.56.50/upload/${DATE}/`ls -1 ${archive} | sed "s|.*/\(.*\)\.${archive_format}|\1-${HOSTNAME}.${archive_format}|"` && echo SUCCESS
}
-if [ "$SYSTEM" == "Linux" ]; then
- upload_build linux_make build tar.bz2
-fi
-if [ "$SYSTEM" == "Darwin" ]; then
- upload_build darwin_app . dmg
-fi
-if [ "`echo $SYSTEM | sed -n 's|\(MINGW\)|\1|p'`" == "MINGW" ]; then
- upload_build win32_inno Output exe
-fi
+
+case $SYSTEM in
+ Linux)
+ upload_build linux_make build tar.bz2
+ ;;
+ Darwin)
+ upload_build darwin_app . dmg
+ ;;
+ MINGW*)
+ CYGWIN*)
+ upload_build win32_inno Output exe
+ ;;
+esac