aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/automated-builder.sh24
1 files changed, 18 insertions, 6 deletions
diff --git a/scripts/automated-builder.sh b/scripts/automated-builder.sh
index 4f1f2bdd..98165e08 100755
--- a/scripts/automated-builder.sh
+++ b/scripts/automated-builder.sh
@@ -2,13 +2,23 @@
# this script is the first attempt to have an automated updater and builder
-cvs_root_dir=`echo $0 | sed 's|\(.*\)/.*$|\1|'`/..
+auto_build_root_dir=`echo $0 | sed 's|\(.*\)/.*$|\1|'`/..
SYSTEM=`uname -s`
+DATE=`date +%Y-%m-%d`
+TIME=`date +%H.%M.%S`
+LOGFILE=/tmp/build-log_${SYSTEM}_${DATE}_${TIME}.txt
-cd "${cvs_root_dir}/packages"
-make unpatch_pd
-../scripts/update-developer-layout.sh
-make patch_pd
+# convert into absolute path
+cd ${auto_build_root_dir}
+auto_build_root_dir=`pwd`
+
+echo "root: $auto_build_root_dir"
+
+cd ${auto_build_root_dir}/packages
+# let rsync handle the cleanup
+#make unpatch_pd
+
+rsync -av --delete rsync://128.238.56.50/pure-data/ ${auto_build_root_dir}/
BUILD_DIR=.
if [ "$SYSTEM" == "Linux" ]; then
@@ -20,10 +30,12 @@ if [ "$SYSTEM" == "Darwin" ]; then
fi
cd "$BUILD_DIR"
+pwd
make distclean
make package_clean
rm -rf build
+#make -C "${auto_build_root_dir}/packages" patch_pd
make install && make package
-#make test_locations
#make test_package
+make test_locations