]> Savannah Git Hosting - gnulib.git/commitdiff
relocatable: improve documentation
authorAkim Demaille <akim.demaille@gmail.com>
Sun, 13 Jan 2019 18:48:35 +0000 (19:48 +0100)
committerAkim Demaille <akim.demaille@gmail.com>
Mon, 14 Jan 2019 07:36:11 +0000 (08:36 +0100)
* doc/relocatable-maint.texi (Supporting Relocation): For
substitutions performed by config.status, we need more variables
(for instance datarootdir defaults to '${prefix}/share' so we need
prefix).

ChangeLog
doc/relocatable-maint.texi

index bc7b953bc3a0e0283339eb48e94b02c220d3a284..b32b4228a2e5a696f4d97b215df662fd64cfa8ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
+
+       relocatable: improve documentation.
+       * doc/relocatable-maint.texi (Supporting Relocation): For
+       substitutions performed by config.status, we need more variables
+       (for instance datarootdir defaults to '${prefix}/share' so we need
+       prefix).
+
 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
 
        backup: update dependencies
index d1e7090bc08daecbc1d6c78363631aa5be050157..b95caaf7c3324c42a359a94389f590043822c52d 100644 (file)
@@ -122,8 +122,12 @@ shell script that your package installs, add the following:
 
 @smallexample
 @@relocatable_sh@@
+
+prefix="@@prefix@@"
+exec_prefix="@@exec_prefix@@"   # usually needs $prefix.
+datarootdir="@@datarootdir@@"   # usually needs $prefix.
+
 if test "@@RELOCATABLE@@" = yes; then
-  exec_prefix="@@exec_prefix@@"
   bindir="@@bindir@@"
   orig_installdir="$bindir" # see Makefile.am's *_SCRIPTS variables
   func_find_curr_installdir # determine curr_installdir
@@ -140,8 +144,9 @@ else
 fi
 
 # Get some relocated directory names.
-sysconfdir=`relocate "@@sysconfdir@@"`
-some_datadir=`relocate "@@datadir@@/something"`
+sysconfdir=`relocate "@@sysconfdir@@"`          # usually needs $prefix.
+some_datadir=`relocate "@@datadir@@/something"` # usually needs $datarootdir.
+bindir=`relocate "@@bindir@@"`       # usually needs $exec_prefix, hence $prefix.
 @end smallexample
 
 You must adapt the definition of @code{orig_installdir}, depending on