summaryrefslogtreecommitdiff
path: root/src/yacc.in
blob: 3ee622b3d28f1dc0c7f6679d9b2fca828ef225b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /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 "$@"