[PATCH 2 of 3] Add cleanup to the release script

Wald Commits scm-commit at wald.intevation.org
Thu Jul 18 17:56:02 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1374162915 -7200
# Node ID e5d8cbce30400eb6af7e236767076ccc076d4db9
# Parent  dfdeed3e997e462dbb2d1874d1ecf681047e794b
Add cleanup to the release script

    This step often failed

diff -r dfdeed3e997e -r e5d8cbce3040 contrib/make_flys_release/make_release.sh
--- 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


More information about the Dive4elements-commits mailing list