sqlite
[Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI.
Brought by drakestapleton
sqlite / tool / tclConfigShToMake.sh
| 1 | #!/bin/sh |
| 2 | # |
| 3 | # A level of indirection for use soley by main.mk to extract info |
| 4 | # from tclConfig.sh if it's not provided by the configure script. |
| 5 | # |
| 6 | # Expects to be passed a full path to a tclConfig.sh. It sources it |
| 7 | # and emits TCL code which sets some vars which are exported by |
| 8 | # tclConfig.sh. |
| 9 | # |
| 10 | # This script expects that the caller has already validated that the |
| 11 | # file exists, is not a directory, and is readable. |
| 12 | # |
| 13 | # If passed no filename, or an empty one, then it emits config code |
| 14 | # suitable for the "config not found" case. |
| 15 | if test x = "x$1"; then |
| 16 | TCL_INCLUDE_SPEC= |
| 17 | TCL_LIB_SPEC= |
| 18 | TCL_STUB_LIB_SPEC= |
| 19 | TCL_EXEC_PREFIX= |
| 20 | TCL_VERSION= |
| 21 | else |
| 22 | . "$1" |
| 23 | fi |
| 24 | |
| 25 | cat <<EOF |
| 26 | TCL_INCLUDE_SPEC = $TCL_INCLUDE_SPEC |
| 27 | TCL_LIB_SPEC = $TCL_LIB_SPEC |
| 28 | TCL_STUB_LIB_SPEC = $TCL_STUB_LIB_SPEC |
| 29 | TCL_EXEC_PREFIX = $TCL_EXEC_PREFIX |
| 30 | TCL_VERSION = $TCL_VERSION |
| 31 | EOF |