changeset 6612:e5d8cbce3040

Add cleanup to the release script This step often failed
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 18 Jul 2013 17:55:15 +0200
parents dfdeed3e997e
children 63baa1873b1f
files contrib/make_flys_release/make_release.sh
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/make_flys_release/make_release.sh	Thu Jul 18 17:54:44 2013 +0200
+++ b/contrib/make_flys_release/make_release.sh	Thu Jul 18 17:55:15 2013 +0200
@@ -367,6 +367,11 @@
 mv $WORK_DIR/datacagedb $WORK_DIR/server/
 
 echo "INFO: create tarball"
+if [ -d "$WORK_DIR/flys-$VERSION" ]; then
+    echo "INFO: removing old directory"
+    rm -rf "$WORK_DIR/flys-$VERSION"
+fi
+
 mkdir $WORK_DIR/flys-$VERSION
 mv $WORK_DIR/server $WORK_DIR/client $WORK_DIR/flys-$VERSION
 cd $WORK_DIR

http://dive4elements.wald.intevation.org