interplane.Get Omega
Read in your language

sqlite

[Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI.

Brought by drakestapleton

branch master Branches Tags History

sqlite / tool / tclConfigShToMake.sh

31 lines · 845 bytes Raw Blame History
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.
15if 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=
21else
22 . "$1"
23fi
24
25cat <<EOF
26TCL_INCLUDE_SPEC = $TCL_INCLUDE_SPEC
27TCL_LIB_SPEC = $TCL_LIB_SPEC
28TCL_STUB_LIB_SPEC = $TCL_STUB_LIB_SPEC
29TCL_EXEC_PREFIX = $TCL_EXEC_PREFIX
30TCL_VERSION = $TCL_VERSION
31EOF