changeset 3569:c53ea91b338b

don't delete generated installer script
author John W. Eaton <jwe@octave.org>
date Wed, 19 Mar 2014 15:11:56 -0400
parents f44dd0186692
children c7725f722155
files binary-dist-rules.mk
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/binary-dist-rules.mk	Wed Mar 19 12:38:42 2014 -0400
+++ b/binary-dist-rules.mk	Wed Mar 19 15:11:56 2014 -0400
@@ -136,12 +136,14 @@
 	@$(install-octave-wrapper-scripts)
 
 define make-installer-file
+  if [ -f $(OCTAVE_NSI_FILE) ]; then
+    echo "deleting previous installer script..."
+    rm -f $(OCTAVE_NSI_FILE)
+  fi
   echo "generating installer script..."
   ./makeinst-script.sh $(OCTAVE_DIST_DIR) $(OCTAVE_NSI_FILE)
   echo "generating installer..."
   $(TARGET)-makensis $(OCTAVE_NSI_FILE) > $(TOP_DIR)/dist/nsis.log
-  echo "deleting installer script..."
-  rm -f $(OCTAVE_NSI_FILE)
 endef
 
 $(OCTAVE_DIST_NAME)-installer.exe: nsis binary-dist-files