+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
@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
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