mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
26 lines
549 B
Bash
26 lines
549 B
Bash
#! /bin/sh
|
|
|
|
@relocatable_sh@
|
|
if test "@RELOCATABLE@" = yes; then
|
|
prefix="@prefix@"
|
|
exec_prefix="@exec_prefix@"
|
|
bindir="@bindir@"
|
|
orig_installdir="$bindir" # see Makefile.am's *_SCRIPTS variables
|
|
func_find_curr_installdir # determine curr_installdir
|
|
func_find_prefixes
|
|
relocate () {
|
|
echo "$1/" \
|
|
| sed -e "s%^${orig_installprefix}/%${curr_installprefix}/%" \
|
|
| sed -e 's,/$,,'
|
|
}
|
|
else
|
|
relocate () {
|
|
echo "$1"
|
|
}
|
|
fi
|
|
|
|
prefix=@prefix@
|
|
exec_prefix=@exec_prefix@
|
|
bindir=`relocate "@bindir@"`
|
|
exec "$bindir/bison" -y "$@"
|