summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhudson-builds/promote-latest-builds.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/hudson-builds/promote-latest-builds.sh b/hudson-builds/promote-latest-builds.sh
index 609ea3b..04df213 100755
--- a/hudson-builds/promote-latest-builds.sh
+++ b/hudson-builds/promote-latest-builds.sh
@@ -84,6 +84,20 @@ function promote_files() {
cd $rootdir
}
+function cleanup() {
+ cd $dest
+ for i in $os_and_archs ; do
+ for j in *$i.zip ; do
+ bname=`basename $j .zip`
+ if [ -d $bname ] ; then
+ echo "INFO: delete folder $bname"
+ rm -rf $bname
+ fi
+ done
+ done
+ cd $rootdir
+}
+
function integrity_check() {
cd $dest
mkdir dump
@@ -101,6 +115,8 @@ function integrity_check() {
fi
done
echo
+ cd ..
+ rm -rf dump
cd $rootdir
}
@@ -211,6 +227,8 @@ cp -a $jocldemosslave/artifact.properties $dest/jocl-demos.artifact.properties
integrity_check
+cleanup
+
rm -rf $archivedir/gluegen_$bgluegenslave-jogl_$bjoglslave-jocl_$bjoclslave
mv $dest $archivedir/gluegen_$bgluegenslave-jogl_$bjoglslave-jocl_$bjoclslave