doc: Fix various typos and phrasing
[automake.git] / pre-inst-env.in
blob40f5fd297cc182e471e959e4f5382b8949481ae6
1 #! /bin/sh
2 # Copyright © 2017-2018 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
17 abs_top_srcdir="@abs_top_srcdir@"
18 abs_top_builddir="@abs_top_builddir@"
20 sep='@PATH_SEPARATOR@';
22 PERL5LIB="$abs_top_builddir/lib/${sep}$abs_top_srcdir/lib/${PERL5LIB:+${sep}}$PERL5LIB"
23 export PERL5LIB
25 PATH="$abs_top_builddir/bin${sep}$PATH"
26 export PATH
28 # Trigger the use of local modules.
29 AUTOMAKE_UNINSTALLED=1
30 export AUTOMAKE_UNINSTALLED
32 AUTOMAKE_LIBDIR="$abs_top_srcdir/lib"
33 export AUTOMAKE_LIBDIR
35 ACLOCAL_AUTOMAKE_DIR="$abs_top_srcdir/m4"
36 export ACLOCAL_AUTOMAKE_DIR
38 ACLOCAL_PATH="$abs_top_srcdir/m4/acdir"
39 export ACLOCAL_PATH
41 exec "$@"