From 2f54d8f30db4d0a56d8ac7c549a5d49deab55b30 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Tue, 8 Mar 2022 19:40:25 -0800 Subject: 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 --- build-tools/path/linux-x86/bison | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build-tools') 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 -- cgit v1.2.3