fix hardcoded default for prefix in help text

Mon, 23 Sep 2024 22:52:48 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 23 Sep 2024 22:52:48 +0200
changeset 115
36e4aedd5663
parent 114
0fa5a6f08245
child 116
41981a23aff8

fix hardcoded default for prefix in help text

fixes #428

src/main/resources/make/configure.vm file | annotate | diff | comparison | revisions
test/configure file | annotate | diff | comparison | revisions
test/configure2 file | annotate | diff | comparison | revisions
test/make/configure.vm file | annotate | diff | comparison | revisions
--- a/src/main/resources/make/configure.vm	Tue Jan 30 21:32:11 2024 +0100
+++ b/src/main/resources/make/configure.vm	Mon Sep 23 22:52:48 2024 +0200
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+#set( $D = '$' )
 # create temporary directory
 TEMP_DIR=".tmp-`uname -n`"
 rm -Rf "$TEMP_DIR"
@@ -62,7 +63,7 @@
     cat << __EOF__
 Installation directories:
   --prefix=PREFIX         path prefix for architecture-independent files
-                          [/usr]
+                          [${D}prefix]
   --exec-prefix=EPREFIX   path prefix for architecture-dependent files
                           [PREFIX]
 
@@ -104,7 +105,6 @@
 # parse arguments
 #
 BUILD_TYPE="default"
-#set( $D = '$' )
 for ARG in "$@"
 do
     case "$ARG" in
--- a/test/configure	Tue Jan 30 21:32:11 2024 +0100
+++ b/test/configure	Mon Sep 23 22:52:48 2024 +0200
@@ -54,7 +54,7 @@
     cat << __EOF__
 Installation directories:
   --prefix=PREFIX         path prefix for architecture-independent files
-                          [/usr]
+                          [$prefix]
   --exec-prefix=EPREFIX   path prefix for architecture-dependent files
                           [PREFIX]
 
--- a/test/configure2	Tue Jan 30 21:32:11 2024 +0100
+++ b/test/configure2	Mon Sep 23 22:52:48 2024 +0200
@@ -51,7 +51,7 @@
     cat << __EOF__
 Installation directories:
   --prefix=PREFIX         path prefix for architecture-independent files
-                          [/usr]
+                          [$prefix]
   --exec-prefix=EPREFIX   path prefix for architecture-dependent files
                           [PREFIX]
 
--- a/test/make/configure.vm	Tue Jan 30 21:32:11 2024 +0100
+++ b/test/make/configure.vm	Mon Sep 23 22:52:48 2024 +0200
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+#set( $D = '$' )
 # create temporary directory
 TEMP_DIR=".tmp-`uname -n`"
 rm -Rf "$TEMP_DIR"
@@ -62,7 +63,7 @@
     cat << __EOF__
 Installation directories:
   --prefix=PREFIX         path prefix for architecture-independent files
-                          [/usr]
+                          [${D}prefix]
   --exec-prefix=EPREFIX   path prefix for architecture-dependent files
                           [PREFIX]
 
@@ -104,7 +105,6 @@
 # parse arguments
 #
 BUILD_TYPE="default"
-#set( $D = '$' )
 for ARG in "$@"
 do
     case "$ARG" in

mercurial