diff options
author | Yifan Hong <elsk@google.com> | 2022-03-08 19:40:25 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2022-03-09 17:53:10 +0000 |
commit | 2f54d8f30db4d0a56d8ac7c549a5d49deab55b30 (patch) | |
tree | 4408334709c8ebcdac5a95ab06f42718af148c1c /build-tools | |
parent | 52c3bf5b03d4bf73f5ea772d28339f04e7cbd91e (diff) | |
download | build-2f54d8f30db4d0a56d8ac7c549a5d49deab55b30.tar.gz |
Fix bison script path inference.
The bison script may be placed in a symlinked directory,
as seen in the next CL. Hence, always read the realpath of
the script itself, then determine base=the dirname of the
realpath of the script.
Test: TH
Bug: 222592011
Change-Id: I52796ff6bac56467a712190e688cfad9cc785cae
Diffstat (limited to 'build-tools')
-rwxr-xr-x | build-tools/path/linux-x86/bison | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build-tools/path/linux-x86/bison b/build-tools/path/linux-x86/bison index ba3cbdd..d259d8a 100755 --- a/build-tools/path/linux-x86/bison +++ b/build-tools/path/linux-x86/bison @@ -1,6 +1,6 @@ #!/bin/sh -base=$(readlink -f $(dirname $0)) +base=$(dirname $(readlink -f $0)) export BISON_PKGDATADIR=$(readlink -f ${base}/../../../../../prebuilts/build-tools/common/bison) export M4=${base}/m4 |