#!/bin/sh -
#	$Id: s_tcl,v 1.1.1.1.2.2 2000/02/08 00:44:15 noriko Exp $
#
# Build the Tcl test files.

msgshb="# DO NOT EDIT BELOW THIS LINE: automatically built by dist/distrib."

. RELEASE

f=../test/include.tcl
echo "Building $f"
rm -f $f
(echo "set tclsh_path SET_YOUR_TCLSH_PATH"	&& \
 echo "set tcllib SET_YOUR_TCLLIB_PATH/libdb_tcl.so" && \
 echo "set rpc_server localhost"	 	&& \
 echo "set test_path @srcdir@/../test"		&& \
 echo ""					&& \
 echo "set CMP \"@db_cv_path_cmp@\""		&& \
 echo "set CP \"@db_cv_path_cp@\""		&& \
 echo "set GREP \"@db_cv_path_grep@\""		&& \
 echo "set KILL \"@db_cv_path_kill@\""		&& \
 echo "set MKDIR \"@db_cv_path_mkdir@\""	&& \
 echo "set MV \"@db_cv_path_mv@\""		&& \
 echo "set PERL5 \"@db_cv_path_perl5@\""	&& \
 echo "set RM \"@db_cv_path_rm@\""		&& \
 echo "set SED \"@db_cv_path_sed@\""		&& \
 echo "set SLEEP \"@db_cv_path_sleep@\""	&& \
 echo "set TR \"@db_cv_path_tr@\""		&& \
 echo ""					&& \
 echo "$msgshb"					&& \
 echo ""					&& \
 echo "global dict"				&& \
 echo ""					&& \
 echo "global testdir"				&& \
 echo "set testdir ./TESTDIR"			&& \
 echo ""					&& \
 echo "set is_windows_test 0") > $f
chmod 444 $f

f=../build_win32/include.tcl
echo "Building $f"
rm -f $f
(echo "set tclsh_path SET_YOUR_TCLSH_PATH"	&& \
 echo "set test_path ../test"			&& \
 echo "set tcllib libdb_tcl${DB_VERSION_MAJOR}${DB_VERSION_MINOR}d.dll" && \
 echo ""					&& \
 echo "set CMP c:/tools/cmp.exe"		&& \
 echo "set CP c:/tools/cp.exe"			&& \
 echo "set GREP c:/tools/grep.exe"		&& \
 echo "set KILL c:/tools/kill.exe"		&& \
 echo "set MKDIR c:/tools/mkdir.exe"		&& \
 echo "set MV c:/tools/mv.exe"			&& \
 echo "set PERL5 \"\""				&& \
 echo "set RM c:/tools/rm.exe"			&& \
 echo "set SED c:/tools/sed.exe"		&& \
 echo "set SLEEP c:/tools/sleep.exe"		&& \
 echo "set TR c:/tools/tr.exe"			&& \
 echo ""					&& \
 echo "$msgshb"					&& \
 echo ""					&& \
 echo "global dict"				&& \
 echo ""					&& \
 echo "global testdir"				&& \
 echo "set testdir ./TESTDIR"			&& \
 echo ""					&& \
 echo "set is_windows_test 1") > $f
chmod 444 $f
