interplane.Get Omega
Read in your language

sqlite

[Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI.

Brought by drakestapleton

branch master Branches Tags History

sqlite / tool / mkamalzip.tcl

23 lines · 625 bytes Raw Blame History
1#!/usr/bin/tclsh
2#
3# Build a ZIP archive for the amalgamation source code found in the current
4# directory.
5#
6set VERSION-file [file dirname [file dirname [file normalize $argv0]]]/VERSION
7set fd [open ${VERSION-file} rb]
8set vers [read $fd]
9close $fd
10scan $vers %d.%d.%d major minor patch
11set numvers [format {3%02d%02d00} $minor $patch]
12set dir sqlite-amalgamation-$numvers
13file delete -force $dir
14file mkdir $dir
15set filelist {sqlite3.c sqlite3.h shell.c sqlite3ext.h}
16foreach f $filelist {
17 file copy $f $dir/$f
18}
19set cmd "zip -r $dir.zip $dir"
20puts $cmd
21file delete -force $dir.zip
22exec {*}$cmd
23file delete -force $dir