Mercurial > dive4elements > river
diff contrib/make_flys_release/make_release.sh @ 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 | 004b87755fa4 |
children | 0e7c667018fc |
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