|
a/samples/wines.tcl |
|
b/samples/wines.tcl |
1 |
#!/bin/sh
|
1 |
#!/usr/bin/env wish
|
2 |
# @(#$Id$
|
|
|
3 |
|
|
|
4 |
# A small utility to access a wine list database.
|
|
|
5 |
# See createloadwines.sh for the database definition
|
|
|
6 |
|
|
|
7 |
# The following nonsense is required because mysqlwish dumps core when
|
|
|
8 |
# SQLDBTYPE is ODBC, reason unknown.
|
|
|
9 |
# The following lines are executed by sh, not by wish because of the
|
|
|
10 |
# backslashes... Puke loudly \
|
|
|
11 |
#\
|
|
|
12 |
case "A$SQLDBTYPE" in
|
|
|
13 |
#\
|
|
|
14 |
A|AMYSQL) exec mysqlwish "$0" "$@";;
|
|
|
15 |
#\
|
|
|
16 |
*) exec wish "$0" "$@";;
|
|
|
17 |
#\
|
|
|
18 |
esac
|
|
|
19 |
|
2 |
|
20 |
package require sqlsc
|
3 |
package require sqlsc
|
21 |
|
4 |
|
22 |
#option add *font {Arial 12}
|
5 |
#option add *font {Arial 12}
|
23 |
#option add *Button*font {Arial 12 bold}
|
6 |
#option add *Button*font {Arial 12 bold}
|