changeset 4686:63a6009ad3df

fix host -config script path when building dist file * binary-dist-rules.mk: for each usr/xxxx-config file, modify any build host paths to /usr paths
author John Donoghue
date Wed, 25 Apr 2018 08:26:25 -0400
parents 292f19dca20d
children ff17e8f333ae
files binary-dist-rules.mk
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/binary-dist-rules.mk	Tue Apr 24 13:15:58 2018 -0400
+++ b/binary-dist-rules.mk	Wed Apr 25 08:26:25 2018 -0400
@@ -103,6 +103,9 @@
       if [ "$(ENABLE_DEVEL_TOOLS)" = "yes" ]; then \
         cp $(TOP_DIR)/installer-files/cmdshell.bat $(OCTAVE_DIST_DIR)/; \
       fi
+      echo "  updating script config tool references..."
+      find '$(OCTAVE_DIST_DIR)/bin' -type f -name "*-config" \
+        -exec $(SED) -i 's|$(HOST_PREFIX)|/usr|g;s|$(BUILD_TOOLS_PREFIX)|/usr|g' {} \; ;
       cp $(TOP_DIR)/installer-files/fc_update.bat $(OCTAVE_DIST_DIR)/
     endef
   else