Mercurial > mxe-octave
changeset 7106:47ac621e632f release
append our octaverc file to existing site rcfile
* binary-dist-rules.mk (copy-dist-files): Append octaverc to existing
file instead of overwriting.
* octaverc: Note that these commands come from MXE Octave.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 13 Mar 2024 12:16:26 -0400 |
parents | 0abe4f772e3e |
children | acd608ccc24d |
files | binary-dist-rules.mk octaverc |
diffstat | 2 files changed, 12 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/binary-dist-rules.mk Tue Mar 12 23:44:43 2024 -0400 +++ b/binary-dist-rules.mk Wed Mar 13 12:16:26 2024 -0400 @@ -80,8 +80,13 @@ echo " octave and dependencies..." cd $(HOST_PREFIX) \ && tar -c $(TAR_H_OPTION) -f - . | ( cd $(OCTAVE_DIST_DIR)$(OCTAVE_ADD_PATH) ; tar xpf - ) - echo " octaverc file..." - cp $(TOP_DIR)/octaverc $(OCTAVE_DIST_DIR)$(OCTAVE_ADD_PATH)/share/octave/site/m/startup/octaverc + if [ -f "$(OCTAVE_DIST_DIR)$(OCTAVE_ADD_PATH)/share/octave/site/m/startup/octaverc" ]; then \ + echo " octaverc file (appending to existing file)..."; \ + cat $(TOP_DIR)/octaverc >> $(OCTAVE_DIST_DIR)$(OCTAVE_ADD_PATH)/share/octave/site/m/startup/octaverc; \ + else \ + echo " octaverc file..."; \ + cp $(TOP_DIR)/octaverc $(OCTAVE_DIST_DIR)$(OCTAVE_ADD_PATH)/share/octave/site/m/startup/octaverc; \ + fi if [ $(ENABLE_BINARY_PACKAGES) = no ]; then \ echo " build_packages.m..."; \ cp $(TOP_DIR)/build_packages.m $(OCTAVE_DIST_DIR)/src; \
--- a/octaverc Tue Mar 12 23:44:43 2024 -0400 +++ b/octaverc Wed Mar 13 12:16:26 2024 -0400 @@ -1,7 +1,11 @@ -## System-wide startup file for Octave. + +## Begin MXE Octave additions to system-wide startup file for Octave. ## ## This file should contain any commands that should be executed each ## time Octave starts for every user at this site. + EXEC_PATH (cstrcat (fullfile (OCTAVE_HOME, 'notepad++'), pathsep, EXEC_PATH)); EXEC_PATH (cstrcat (fullfile (OCTAVE_HOME, 'bin'), pathsep, EXEC_PATH)); EDITOR (fullfile (OCTAVE_HOME, 'notepad++', 'notepad++.exe')); + +## End MXE Octave additions to system-wide startup file for Octave.