build: Extend PATH from 'pre-inst-env' script
[automake.git] / pre-inst-env.in
blob1599c7b5d86da66c74b89c4d22aa34768d06d706
1 #! /bin/sh
2 # Copyright © 2017 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 <http://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 exec "$@"