Mercurial > mxe-octave
comparison binary-dist-rules.mk @ 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 | 70b110956a4e |
children | 32b09e905e9e |
comparison
equal
deleted
inserted
replaced
3463:7901815035d6 | 3464:23efd381ae4a |
---|---|
122 $(SED) < octave-wrapper.in \ | 122 $(SED) < octave-wrapper.in \ |
123 -e "s|@OCTAVE_VERSION@|\"$($(OCTAVE_TARGET)_VERSION)\"|" \ | 123 -e "s|@OCTAVE_VERSION@|\"$($(OCTAVE_TARGET)_VERSION)\"|" \ |
124 -e "s|@GNUPLOT_MAJOR_MINOR_VERSION@|\"$(shell echo $(gnuplot_VERSION) | $(SED) -e 's/\(^[0-9]+\.[0-9]+\)/\1/')\"|" \ | 124 -e "s|@GNUPLOT_MAJOR_MINOR_VERSION@|\"$(shell echo $(gnuplot_VERSION) | $(SED) -e 's/\(^[0-9]+\.[0-9]+\)/\1/')\"|" \ |
125 -e "s|@PROGRAM_NAME@|\"$$f\"|" > $$f-t \ | 125 -e "s|@PROGRAM_NAME@|\"$$f\"|" > $$f-t \ |
126 && mv $$f-t $(OCTAVE_DIST_DIR)/bin/$$f-$($(OCTAVE_TARGET)_VERSION); \ | 126 && mv $$f-t $(OCTAVE_DIST_DIR)/bin/$$f-$($(OCTAVE_TARGET)_VERSION); \ |
127 rm -f $(OCTAVE_DIST_DIR)/bin/$$f; \ | |
128 ln -s $$f-$($(OCTAVE_TARGET)_VERSION) $(OCTAVE_DIST_DIR)/bin/$$f; \ | |
127 done | 129 done |
128 endef | 130 endef |
129 else | 131 else |
130 define install-octave-wrapper-scripts | 132 define install-octave-wrapper-scripts |
131 echo "no octave wrapper scripts to install for this system..." | 133 echo "no octave wrapper scripts to install for this system..." |