changeset 3465:32b09e905e9e

ensure octave wrapper programs are executable
author John W. Eaton <jwe@octave.org>
date Tue, 28 Jan 2014 03:58:51 -0500
parents 23efd381ae4a
children cf594095a7dc
files binary-dist-rules.mk
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/binary-dist-rules.mk	Tue Jan 28 03:52:28 2014 -0500
+++ b/binary-dist-rules.mk	Tue Jan 28 03:58:51 2014 -0500
@@ -123,7 +123,7 @@
       -e "s|@OCTAVE_VERSION@|\"$($(OCTAVE_TARGET)_VERSION)\"|" \
       -e "s|@GNUPLOT_MAJOR_MINOR_VERSION@|\"$(shell echo $(gnuplot_VERSION) | $(SED) -e 's/\(^[0-9]+\.[0-9]+\)/\1/')\"|" \
       -e "s|@PROGRAM_NAME@|\"$$f\"|" > $$f-t \
-    && mv $$f-t $(OCTAVE_DIST_DIR)/bin/$$f-$($(OCTAVE_TARGET)_VERSION); \
+    && $(INSTALL) -m 755 $$f-t $(OCTAVE_DIST_DIR)/bin/$$f-$($(OCTAVE_TARGET)_VERSION); \
     rm -f $(OCTAVE_DIST_DIR)/bin/$$f; \
     ln -s $$f-$($(OCTAVE_TARGET)_VERSION) $(OCTAVE_DIST_DIR)/bin/$$f; \
   done