gnucash-on-windows master: Remove pre-existing dist dir instead of aborting a dist build

Geert Janssens gjanssens at code.gnucash.org
Sat Oct 11 06:57:18 EDT 2014


Updated	 via  https://github.com/Gnucash/gnucash-on-windows/commit/929cbf79 (commit)
	from  https://github.com/Gnucash/gnucash-on-windows/commit/a12f11a9 (commit)



commit 929cbf79c18029d464f92601960c0ea85f02244e
Author: Geert Janssens <janssens-geert at telenet.be>
Date:   Sat Oct 11 15:47:29 2014 +0200

    Remove pre-existing dist dir instead of aborting a dist build

diff --git a/dist-impl.sh b/dist-impl.sh
index 7c012ad..f4fe538 100755
--- a/dist-impl.sh
+++ b/dist-impl.sh
@@ -6,7 +6,8 @@
 function dist_prepare() {
     TMP_UDIR=`unix_path $TMP_DIR`
     if [ -x $DIST_DIR ]; then
-        die "Please remove ${DIST_DIR} first"
+        echo "Removing previous DIST_DIR ${DIST_DIR}"
+        rm -fr "${DIST_DIR}"
     fi
     _UNZIP_UDIR=`unix_path $UNZIP_DIR`
     _GUILE_UDIR=`unix_path $GUILE_DIR`



Summary of changes:
 dist-impl.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)



More information about the gnucash-changes mailing list