summaryrefslogtreecommitdiff
path: root/doc/relocatable-maint.texi
diff options
context:
space:
mode:
authorWerner LEMBERG <wl@gnu.org>2018-07-24 02:46:14 +0200
committerBruno Haible <bruno@clisp.org>2018-07-24 02:46:14 +0200
commit580b07202d3e6744d8d014aac695c20d33ca7119 (patch)
tree4b7903aa1e3947ac300379b4468b87efdad78608 /doc/relocatable-maint.texi
parent68df637b5f1b5c10370f6981d2a43a5cf74368df (diff)
downloadgnulib-580b07202d3e6744d8d014aac695c20d33ca7119.tar.gz
doc: Avoid some overfull lines in the TeX output.
* doc/glibc-functions/futimesat.texi: Replace a long @code with a @example. * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a newline before the long URL. * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise. * doc/relocatable-maint.texi: Use @smallexample instead of @example. Add line breaks in code snippets.
Diffstat (limited to 'doc/relocatable-maint.texi')
-rw-r--r--doc/relocatable-maint.texi22
1 files changed, 13 insertions, 9 deletions
diff --git a/doc/relocatable-maint.texi b/doc/relocatable-maint.texi
index 36cceb6223..d1e7090bc0 100644
--- a/doc/relocatable-maint.texi
+++ b/doc/relocatable-maint.texi
@@ -120,7 +120,7 @@ If your package installs shell scripts, also import the
@code{relocatable-script} module. Then, near the beginning of each
shell script that your package installs, add the following:
-@example
+@smallexample
@@relocatable_sh@@
if test "@@RELOCATABLE@@" = yes; then
exec_prefix="@@exec_prefix@@"
@@ -142,7 +142,7 @@ fi
# Get some relocated directory names.
sysconfdir=`relocate "@@sysconfdir@@"`
some_datadir=`relocate "@@datadir@@/something"`
-@end example
+@end smallexample
You must adapt the definition of @code{orig_installdir}, depending on
where the script gets installed. Also, at the end, instead of
@@ -154,13 +154,16 @@ If your package installs Perl scripts, also import the
@code{relocatable-perl} module. Then, near the beginning of each
Perl script that your package installs, add the following:
-@example
+@smallexample
@@relocatable_pl@@
if ("@@RELOCATABLE@@" eq "yes") @{
my $exec_prefix = "@@exec_prefix@@";
my $orig_installdir = "@@bindir@@"; # see Makefile.am's *_SCRIPTS variables
- my ($orig_installprefix, $curr_installprefix) = find_prefixes($orig_installdir, find_curr_installdir());
- sub relocate @{ # the subroutine is defined whether or not the enclosing block is executed
+ my ($orig_installprefix, $curr_installprefix) =
+ find_prefixes($orig_installdir, find_curr_installdir());
+
+ # the subroutine is defined whether or not the enclosing block is executed
+ sub relocate @{
my ($dir) = @@_;
if ("@@RELOCATABLE@@" eq "yes") @{
$dir =~ s%^$orig_installprefix/%$curr_installprefix/%;
@@ -174,7 +177,7 @@ if ("@@RELOCATABLE@@" eq "yes") @{
# (The gnulib module 'configmake' can help with this.)
$sysconfdir = relocate("@@sysconfdir@@");
$some_datadir = relocate(@@datadir@@/something");
-@end example
+@end smallexample
You must adapt the definition of @code{$orig_installdir}, depending on
where the script gets installed. Also, at the end, instead of
@@ -211,9 +214,10 @@ endif
@code{SHLIBS_IN_BINDIR} is defined in @file{configure.ac} as follows:
-@example
-AM_CONDITIONAL([SHLIBS_IN_BINDIR], [case "$host_os" in mingw* | cygwin*) true;; *) false;; esac])
-@end example
+@smallexample
+AM_CONDITIONAL([SHLIBS_IN_BINDIR],
+ [case "$host_os" in mingw* | cygwin*) true;; *) false;; esac])
+@end smallexample
@item
You may also need to add a couple of variable assignments to your