#!/bin/csh -f
#
# $Id: globck,v 3.20 1995/07/27 14:49:31 kohl Exp $
#
if ( "#$1#" == '##' || "#$2#" == '##' ) then
	echo "usage: globck [-DUSE_TCL73_TK36|-DUSE_TCL74_TK40] <srcdir>"
	exit 0
endif
#
# Insert Warning Header
#
echo "" >! $2/globs.tcl
echo "#" >> $2/globs.tcl
echo "### DO NOT CHANGE THIS FILE, AUTO_GENERATED ###" >> $2/globs.tcl
echo "#" >> $2/globs.tcl
echo "" >> $2/globs.tcl
#
# Append Correct Compatibility Globals
#
if ( $1 == "-DUSE_TCL73_TK36" ) then
	echo "\t...using globs.tcl73.tk36.tclsrc"
	cat $2/globs.tcl73.tk36.tclsrc >> $2/globs.tcl
else if ( $1 == "-DUSE_TCL74_TK40" ) then
	echo "\t...using globs.tcl74.tk40.tclsrc"
	cat $2/globs.tcl74.tk40.tclsrc >> $2/globs.tcl
endif

