3 # Run this script in order to generate a ZIP archive containing various
6 # The makefile that invokes this script must first build the following
9 # testfixture -- used to run this script
10 # sqlite3 -- the SQLite CLI
11 # sqldiff -- Program to diff two databases
12 # sqlite3_analyzer -- Space analyzer
14 switch $tcl_platform(os
) {
32 switch $tcl_platform(machine
) {
41 if {$tcl_platform(pointerSize
)==4} {
51 set in
[open [file join [file dirname
[file dirname
[info script
]]] VERSION
]]
54 scan $vers %d.
%d.
%d v1 v2 v3
55 set v2
[format 3%02d
%02d00
$v2 $v3]
56 set name sqlite-tools-
$OS-$ARCH-$v2.zip
59 # The win32 tar.exe supports the -a ("auto-compress") option. This causes
60 # tar to create an archive type based on the extension of the output file.
61 # In this case, a zip file.
62 puts "tar -a -cf $name sqlite3$EXE sqldiff$EXE sqlite3_analyzer$EXE"
63 puts [exec tar
-a -cf $name sqlite3
$EXE sqldiff
$EXE sqlite3_analyzer
$EXE]
64 puts "$name: [file size $name] bytes"
66 puts "zip $name sqlite3$EXE sqldiff$EXE sqlite3_analyzer$EXE"
67 puts [exec zip
$name sqlite3
$EXE sqldiff
$EXE sqlite3_analyzer
$EXE]
68 puts [exec ls
-l $name]