diff options
-rwxr-xr-x | scripts/auto-build/pd-main-auto-builder.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/auto-build/pd-main-auto-builder.sh b/scripts/auto-build/pd-main-auto-builder.sh index 97df01ff..a5ec0645 100755 --- a/scripts/auto-build/pd-main-auto-builder.sh +++ b/scripts/auto-build/pd-main-auto-builder.sh @@ -25,13 +25,13 @@ case $SYSTEM in ;; esac -package_name="${ROOT_DIR}/pd-${DATE}-${SYSTEM}-${HOSTNAME}-${platform_name}.tar.bz2" - # convert into absolute path cd `echo $0 | sed 's|\(.*\)/.*$|\1|'`/../.. auto_build_root_dir=`pwd` echo "root: $auto_build_root_dir" +package_name="/tmp/pd-${DATE}-${SYSTEM}-${HOSTNAME}-${platform_name}.tar.bz2" + # let rsync handle the cleanup with --delete rsync -av --delete rsync://128.238.56.50/distros/pd-main/ \ ${auto_build_root_dir}/ @@ -44,5 +44,5 @@ cd ${auto_build_root_dir}/pd/src && \ cd ../../ && \ tar cjf $package_name pd && \ rsync -a ${package_name} rsync://128.238.56.50/upload/${DATE}/ - +rm -f -- $package_name |