Fix execution of tclsh.
[yaz-moved-to-github.git] / util / yaz-asncomp
index 157246c..f858c77 100755 (executable)
@@ -1,12 +1,12 @@
 #!/bin/sh
 # the next line restarts using tclsh \
-exec tclsh "$0" "$@"
+if [ -f /usr/local/bin/tclsh8.4 ]; then exec tclsh8.4 "$0" "$@"; else exec tclsh "$0" "$@"; fi
 #
 # yaz-comp: ASN.1 Compiler for YAZ
 # (c) Index Data 1996-2004
 # See the file LICENSE for details.
 #
-# $Id: yaz-asncomp,v 1.5 2006-04-20 08:25:12 adam Exp $
+# $Id: yaz-asncomp,v 1.7 2006-05-22 19:08:38 adam Exp $
 #
 
 set yc_version 0.4