Skip to content

Commit

Permalink
Changes in test scripts from tclsh to tcl.
Browse files Browse the repository at this point in the history
Correct typos in documention.
  • Loading branch information
Sergey N. Belinsky committed Feb 16, 2004
1 parent 02faea8 commit 3c48e92
Show file tree
Hide file tree
Showing 11 changed files with 131 additions and 16 deletions.
113 changes: 113 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
2004-02-10 20:04 sergeybe

* tcl.m4: Clean macros

2004-02-10 20:00 sergeybe

* .cvsignore: [no log message]

2004-02-10 19:59 sergeybe

* configure.in, tcl.m4, src/Makefile.am, src/db2tclcmds.c,
src/db2tclcmds.h, tests/test4.tcl: Patch from Valerio Gionco
<[email protected]>

Changes are: - a small patch to "ibmdb2.m4", needed because
"db2_prefix" and "ibm-db2" were oddly mixed. Note that
"configure" should be rebuilt with autoconf/automake after the
change. - the number of arguments to db2_execute is 3, not 2.
Wonder how it worked before. - missing fields for Db2_ConnType
initialized to NULL. - SQLGetData() returns only garbage if last
field is NULL. Don't know if this is a Linux-specific bug in IBM
libraries or what, but passing an "int *" solved the issue. -
some "CONST" added to avoid warnings here and there.

2004-02-09 15:57 sergeybe

* .cvsignore: [no log message]

2004-02-08 16:06 sergeybe

* tests/test1.tcl: Added test transaction.

2004-02-08 15:58 sergeybe

* README, aclocal.m4, autogen.sh, config.h.in, configure.in,
ibmdb2.m4, tcl.m4, src/Makefile.am, src/db2tcl.c, src/db2tclcmds.c,
src/db2tclcmds.h: Added transaction support. Clearup code Clearup
buid scripts.

2004-02-06 16:05 sergeybe

* tests/test1.tcl: Fix catch statement.

2004-02-06 15:17 sergeybe

* .cvsignore, Makefile.in, aclocal.m4, autogen.sh, config.guess,
config.sub, configure, db2tcl.spec, depcomp, install-sh, ltconfig,
ltmain.sh, missing, mkinstalldirs, stamp-h.in, doc/.cvsignore,
doc/Makefile.in, src/.cvsignore, src/Makefile.in, tests/.cvsignore,
tests/Makefile.in: Cleanup build scripts.

2002-12-27 18:23 sergeybe

* Makefile.in, configure.in: Removed revision macros from
configure.in.

2002-12-27 18:01 sergeybe

* Makefile.in, aclocal.m4, config.guess, config.h.in, config.sub,
configure, configure.in, depcomp, install-sh, ltmain.sh, missing,
mkinstalldirs, doc/Makefile.in, src/Makefile.in, src/db2tclcmds.c,
tests/Makefile.in: Fix some error in db2_connect and db2_exec
command. Migrate to new automake and autoconf.

2002-12-16 18:44 sergeybe

* db2tcl.spec, db2tcl.spec.in: Fix path to man directory.

2002-12-09 14:35 sergeybe

* db2tcl.spec, db2tcl.spec.in: Fix in spec file inn section %clean.

2002-12-09 14:22 sergeybe

* .cvsignore, AUTHORS, COPYING, Makefile.am, Makefile.in, README,
README.in, acinclude.m4, aclocal.m4, configure, configure.in,
db2tcl.spec, db2tcl.spec.in, ibmdb2.m4, mkIndex.tcl.in, tcl.m4,
doc/.cvsignore, doc/Makefile.in, src/.cvsignore, src/Makefile.in,
src/db2tcl.c, src/db2tclcmds.c, src/db2tclcmds.h, tests/.cvsignore,
tests/Makefile.am, tests/Makefile.in, tests/test5.tcl: Added spec
file for RedHat based distributions Split m4 macro to two files Fix
minor bugs Fix building scripts Prepare for version 0.0.2

2002-09-06 16:53 sergeybe

* db2tcl-0.0.1.tar.gz: Clear CVS tree.

2002-09-06 15:55 sergeybe

* AUTHORS, COPYING, ChangeLog, INSTALL, Makefile.am, Makefile.in,
NEWS, README.in, TODO, acinclude.m4, aclocal.m4, config.guess,
config.h.in, config.sub, configure, configure.in, install-sh,
ltconfig, ltmain.sh, missing, mkinstalldirs, stamp-h.in,
db2tcl-0.0.1.tar.gz, doc/Makefile.am, doc/Makefile.in,
doc/db2tclsh.1, doc/db2tksh.1, src/Makefile.am, src/Makefile.in,
src/db2tcl.c, src/db2tcl.h, src/db2tclcmds.c, src/db2tclcmds.h,
src/db2tclsh.c, src/db2wish.c, tests/Makefile.am,
tests/Makefile.in, tests/test1.tcl, tests/test2.tcl,
tests/test3.tcl, tests/test4.tcl: Initial revision

2002-09-06 15:55 sergeybe

* AUTHORS, COPYING, ChangeLog, INSTALL, Makefile.am, Makefile.in,
NEWS, README.in, TODO, acinclude.m4, aclocal.m4, config.guess,
config.h.in, config.sub, configure, configure.in, install-sh,
ltconfig, ltmain.sh, missing, mkinstalldirs, stamp-h.in,
db2tcl-0.0.1.tar.gz, doc/Makefile.am, doc/Makefile.in,
doc/db2tclsh.1, doc/db2tksh.1, src/Makefile.am, src/Makefile.in,
src/db2tcl.c, src/db2tcl.h, src/db2tclcmds.c, src/db2tclcmds.h,
src/db2tclsh.c, src/db2wish.c, tests/Makefile.am,
tests/Makefile.in, tests/test1.tcl, tests/test2.tcl,
tests/test3.tcl, tests/test4.tcl: Initial release

1 change: 0 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
0.0.1 - Initial release.
14 changes: 7 additions & 7 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ DB2TCL features:
-- supports multiple connections to one or more database servers,
-- supports all IBM DB2 statements,
-- returns SELECT query results either as TCL lists, or iterates
a script over the resulting rows.
a script over the resulting rows,
-- supports database transactions.

WHERE TO GET DB2TCL?
====================

WHERE TO GET DB2TCL
===================

http://db2tcl.sourceforge.net/
http://sourceforge.net/projects/db2tcl/


INSTALLATION
Expand Down Expand Up @@ -42,7 +42,7 @@ REQUIREMENTS
Since DB2TCL is an extension to Tcl, you should already have Tcl, or be
prepared to get it via FTP:

ftp://ftp.scriptics.com/pub/tcl8_0
ftp://ftp.scriptics.com/pub/tcl/

If you want compile Tk interface for IBM DB2 you must have
Tk library also.
Expand Down Expand Up @@ -113,7 +113,7 @@ db2_rollback_transaction db_handle
NOTE
====

DB2TCL tested only on Linux systems!
DB2TCL tested only on Linux 2.4.x systems and Solaris 8!

Sergey N. Belinsky
[email protected]
2 changes: 1 addition & 1 deletion db2tcl.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ DB2TCL is an extension to the TCL that provides access
to a IBM UDB DB2 database server.

%description -l ru
DB2TCL ��� ���������� ��� ����� ��������������� TCL, �������
DB2TCL ��� ���������� ��� ����� ��������������� TCL, �������
��������� ������� ������ � ������� ��� ������ IBM UDB DB2.

%prep
Expand Down
1 change: 1 addition & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ noinst_HEADERS = db2tclcmds.h db2tcl.h


lib_LTLIBRARIES = libdb2tcl.la
noinst_LTLIBRARIES = libdb2tcl.la

libdb2tcl_la_SOURCES = db2tclcmds.c db2tcl.c
libdb2tcl_la_LDFLAGS = -version-info 0:1:0
Expand Down
6 changes: 4 additions & 2 deletions tcl.m4
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ AC_DEFUN(SC_PATH_TCLCONFIG, [
if test x"${ac_cv_c_tclconfig}" = x ; then
for i in `ls -d ${prefix}/lib 2>/dev/null` \
`ls -d /usr/local/lib 2>/dev/null` \
`ls -d /usr/lib 2>/dev/null` ; do
`ls -d /usr/lib 2>/dev/null` \
`ls -d /opt/sfw/lib 2>/dev/null` ; do
if test -f "$i/tclConfig.sh" ; then
ac_cv_c_tclconfig=`(cd $i; pwd)`
break
Expand Down Expand Up @@ -163,7 +164,8 @@ AC_DEFUN(SC_PATH_TKCONFIG, [
if test x"${ac_cv_c_tkconfig}" = x ; then
for i in `ls -d ${prefix}/lib 2>/dev/null` \
`ls -d /usr/local/lib 2>/dev/null` \
`ls -d /usr/lib 2>/dev/null` ; do
`ls -d /usr/lib 2>/dev/null` \
`ls -d /opt/sfw/lib 2>/dev/null` ; do
if test -f "$i/tkConfig.sh" ; then
ac_cv_c_tkconfig=`(cd $i; pwd)`
break
Expand Down
2 changes: 1 addition & 1 deletion tests/test1.tcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"
exec tcl "$0" "$@"

#lappend auto_path /usr/lib/tcl_local $env(RDS_TCL_SCRIPTS)/lib

Expand Down
2 changes: 1 addition & 1 deletion tests/test2.tcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"
exec tcl "$0" "$@"

load "../src/.libs/libdb2tcl.so"

Expand Down
2 changes: 1 addition & 1 deletion tests/test3.tcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"
exec tcl "$0" "$@"

load "../src/.libs/libdb2tcl.so"

Expand Down
2 changes: 1 addition & 1 deletion tests/test4.tcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"
exec tcl "$0" "$@"

#lappend auto_path /usr/lib/tcl_local $env(RDS_TCL_SCRIPTS)/lib

Expand Down
2 changes: 1 addition & 1 deletion tests/test5.tcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"
exec tcl "$0" "$@"

#lappend auto_path /usr/lib/tcl_local $env(RDS_TCL_SCRIPTS)/lib

Expand Down

0 comments on commit 3c48e92

Please sign in to comment.