sqlite
[Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI.
Brought by drakestapleton
| 1 | #!/usr/bin/tclsh |
| 2 | # |
| 3 | # Build a ZIP archive for the complete, unedited source code that |
| 4 | # corresponds to the current check-out. |
| 5 | # |
| 6 | set VERSION-file [file dirname [file dirname [file normalize $argv0]]]/VERSION |
| 7 | set fd [open ${VERSION-file} rb] |
| 8 | set vers [read $fd] |
| 9 | close $fd |
| 10 | scan $vers %d.%d.%d major minor patch |
| 11 | set numvers [format {3%02d%02d00} $minor $patch] |
| 12 | set cmd "fossil zip current sqlite-src-$numvers.zip --name sqlite-src-$numvers" |
| 13 | puts $cmd |
| 14 | exec {*}$cmd |