changeset 3464:23efd381ae4a

binary-dist-rules.mk: Ensure that octave, octave-config, and octave-cli are symbolic links when wrapper programs are used.
author John W. Eaton <jwe@octave.org>
date Tue, 28 Jan 2014 03:52:28 -0500
parents 7901815035d6
children 32b09e905e9e
files binary-dist-rules.mk
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/binary-dist-rules.mk	Tue Jan 28 03:46:58 2014 -0500
+++ b/binary-dist-rules.mk	Tue Jan 28 03:52:28 2014 -0500
@@ -124,6 +124,8 @@
       -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); \
+    rm -f $(OCTAVE_DIST_DIR)/bin/$$f; \
+    ln -s $$f-$($(OCTAVE_TARGET)_VERSION) $(OCTAVE_DIST_DIR)/bin/$$f; \
   done
 endef
 else