File: cktclsh.sh

package info (click to toggle)
sqlcipher 4.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 120,100 kB
  • sloc: ansic: 285,202; tcl: 19,833; javascript: 12,886; java: 8,151; sh: 4,409; yacc: 1,644; makefile: 1,578; cpp: 440; cs: 307; sql: 45
file content (11 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
# Fail with an error if the TCLSH named in $2 is not tclsh version $1 or later.
#
echo "set vers $1" >cktclsh$1.tcl
echo 'if {$tcl_version<$vers} {exit 1}' >>cktclsh$1.tcl
if ! $2 cktclsh$1.tcl
then
   echo "ERROR: This makefile target requires tclsh $1 or later."
   rm cktclsh$1.tcl
   exit 1
fi
rm cktclsh$1.tcl