tdbc::sqlite3

Check-in [4a926e130b]
Login
Bounty program for improvements to Tcl and certain Tcl packages.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added makeWinBinaries.tcl, to make Windows binary distribution
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 1.0b6 | trunk
Files: files | file ages | folders
SHA1:4a926e130b795592063d0db968ee407fb2dd7a44
User & Date: kennykb 2009-01-06 04:49:36
Context
2009-01-08
03:28
merge David Gravereaux's patch to win/makefile.vc in the Tcl HEAD check-in: c79db819e7 user: 200002852 tags: trunk
2009-01-06
04:49
Added makeWinBinaries.tcl, to make Windows binary distribution check-in: 4a926e130b user: kennykb tags: 1.0b6, trunk
04:02
Roll up the 1.0b6 release check-in: fcf313965d user: kennykb tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added makeWinBinaries.tcl.























































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env tclsh8.6 $0 "$@"

set ver [package require tdbc]

set instdir [file normalize [file join  $::tcl_library ..]]
set pathlist [glob -types d \
		  -directory $instdir \
		  -tails 1 \
		  {tdbc[a-z]*}]
lappend pathlist tcl8/8.6/tdbc

set distdir /tmp/dist/tdbc${ver}-drivers
file mkdir $distdir
set f [open [file join $distdir INSTALL.tcl] w]
puts $f {
    package require Tcl 8.6
    package require Tk
    grid [label .l -text "Installing TDBC drivers"]
    set distdir [file dirname [info script]]
    set instdir [file normalize [file join $::tcl_library ..]]
}

foreach dir $pathlist {
    file mkdir [file join $distdir $dir]
    puts $f "file mkdir -force \[file join \$::tcl_library [list $dir]\]"
    foreach file [glob -directory [file join $instdir $dir] -tails *] {
	file copy -force [file join $instdir $dir $file] \
	    [file join $distdir $dir $file]
	puts $f "file copy -force \
                           \[file join \$distdir $dir $file\] \
                           \[file join \$instdir $dir $file\]"
    }
}
puts $f {
    tk_messageBox -type ok \
	-detail "Files installed in $instdir" \
	-message "TDBC drivers installed." \
	-icon info
    exit
}
close $f
exit
	

Changes to tdbcsqlite3/Makefile.in.

69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
DESTDIR		=

PKG_DIR		= $(PACKAGE_NAME)$(PACKAGE_VERSION)
pkgdatadir	= $(datadir)/$(PKG_DIR)
pkglibdir	= $(libdir)/$(PKG_DIR)
pkgincludedir	= $(includedir)/$(PKG_DIR)
tmdir		= $(libdir)/tcl$(TCL_MAJOR_VERSION)/$(TCL_VERSION)
pkgslash	= `echo $(PACKAGE_NAME) | sed s-::-/-`
pkgtmdir	= $(tmdir)/tdbc
pkgtmfile	= $(tmdir)/$(pkgslash)-$(PACKAGE_VERSION).tm

top_builddir	= .

INSTALL		= @INSTALL@
INSTALL_PROGRAM	= @INSTALL_PROGRAM@







|







69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
DESTDIR		=

PKG_DIR		= $(PACKAGE_NAME)$(PACKAGE_VERSION)
pkgdatadir	= $(datadir)/$(PKG_DIR)
pkglibdir	= $(libdir)/$(PKG_DIR)
pkgincludedir	= $(includedir)/$(PKG_DIR)
tmdir		= $(libdir)/tcl$(TCL_MAJOR_VERSION)/$(TCL_VERSION)
pkgslash	= `echo $(PACKAGE_NAME) | sed s=tdbc=tdbc/=`
pkgtmdir	= $(tmdir)/tdbc
pkgtmfile	= $(tmdir)/$(pkgslash)-$(PACKAGE_VERSION).tm

top_builddir	= .

INSTALL		= @INSTALL@
INSTALL_PROGRAM	= @INSTALL_PROGRAM@