diff options
author | Steve Bennett <steveb@workware.net.au> | 2022-08-20 08:24:22 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2022-08-20 15:35:49 +1000 |
commit | d6edb1347713f002a8f1e61c585583b3b1c37394 (patch) | |
tree | 717ae3875f7e451b97517f3a2cdff66d44de77c6 /autosetup/autosetup-find-tclsh | |
parent | 6e1d4cc163dc37f0ea5cdae8b3e2b9e4b0a73254 (diff) | |
download | jimtcl-d6edb1347713f002a8f1e61c585583b3b1c37394.zip jimtcl-d6edb1347713f002a8f1e61c585583b3b1c37394.tar.gz jimtcl-d6edb1347713f002a8f1e61c585583b3b1c37394.tar.bz2 |
build: Update to autosetup v0.7.1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'autosetup/autosetup-find-tclsh')
-rwxr-xr-x | autosetup/autosetup-find-tclsh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/autosetup/autosetup-find-tclsh b/autosetup/autosetup-find-tclsh index e1e0462..436e76a 100755 --- a/autosetup/autosetup-find-tclsh +++ b/autosetup/autosetup-find-tclsh @@ -2,14 +2,15 @@ # Looks for a suitable tclsh or jimsh in the PATH # If not found, builds a bootstrap jimsh in current dir from source # Prefer $autosetup_tclsh if is set in the environment (unless ./jimsh0 works) +# If an argument is given, use that as the test instead of autosetup-test-tclsh d="`dirname "$0"`" for tclsh in ./jimsh0 $autosetup_tclsh jimsh tclsh tclsh8.5 tclsh8.6 tclsh8.7; do - { $tclsh "$d/autosetup-test-tclsh"; } 2>/dev/null && exit 0 + { $tclsh "$d/${1-autosetup-test-tclsh}"; } 2>/dev/null && exit 0 done echo 1>&2 "No installed jimsh or tclsh, building local bootstrap jimsh0" for cc in ${CC_FOR_BUILD:-cc} gcc; do { $cc -o jimsh0 "$d/jimsh0.c"; } 2>/dev/null || continue - ./jimsh0 "$d/autosetup-test-tclsh" && exit 0 + ./jimsh0 "$d/${-autosetup-test-tclsh}" && exit 0 done echo 1>&2 "No working C compiler found. Tried ${CC_FOR_BUILD:-cc} and gcc." echo false |