Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/sqlite/blob/master/autosetup/autosetup-find-tclsh # sqlite [Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `sqlite / autosetup / autosetup-find-tclsh` 16 lines ยท 782 bytes Raw Blame History 1 #!/bin/sh 2 # Looks for a suitable tclsh or jimsh in the PATH 3 # If not found, builds a bootstrap jimsh in current dir from source 4 # Prefer $autosetup_tclsh if is set in the environment (unless ./jimsh0 works) 5 # If an argument is given, use that as the test instead of autosetup-test-tclsh 6 d="`dirname "$0"`" 7 for tclsh in ./jimsh0 $autosetup_tclsh jimsh tclsh tclsh8.5 tclsh8.6 tclsh8.7; do 8 { $tclsh "$d/${1-autosetup-test-tclsh}"; } 2>/dev/null && exit 0 9 done 10 echo 1>&2 "No installed jimsh or tclsh, building local bootstrap jimsh0" 11 for cc in ${CC_FOR_BUILD:-cc} gcc; do 12 { $cc -o jimsh0 "$d/jimsh0.c"; } 2>/dev/null >/dev/null || continue 13 ./jimsh0 "$d/${1-autosetup-test-tclsh}" && exit 0 14 done 15 echo 1>&2 "No working C compiler found. Tried ${CC_FOR_BUILD:-cc} and gcc." 16 echo false