diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-01-13 19:48:35 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-01-14 08:36:11 +0100 |
commit | c66547cdce3cdaf4c7963a73218e4aab56ed89a0 (patch) | |
tree | 63006e8d076c5c1a671fadada0e6388ad802dc47 /doc/relocatable-maint.texi | |
parent | b1ca7611d1fdc0de1158645f675065f122e0d7a4 (diff) | |
download | gnulib-c66547cdce3cdaf4c7963a73218e4aab56ed89a0.tar.gz |
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).
Diffstat (limited to 'doc/relocatable-maint.texi')
-rw-r--r-- | doc/relocatable-maint.texi | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/relocatable-maint.texi b/doc/relocatable-maint.texi index d1e7090bc0..b95caaf7c3 100644 --- a/doc/relocatable-maint.texi +++ b/doc/relocatable-maint.texi @@ -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 |