1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Add the convenience makefile target (unix-only) "src-archives" that builds

the various tarballs and ZIP archives that go on the download page.  This is
intended to make it easier and less error prone to put up new "draft" download
pages for testing.

FossilOrigin-Name: 2b17bc49655c577029919c2d409de994b0d252f8efb5da1ba0913f2c96bee552
This commit is contained in:
drh
2024-12-30 21:23:53 +00:00
parent 71d6456f59
commit 95f6df5b8d
5 changed files with 53 additions and 7 deletions

15
tool/mkamalzip.tcl Normal file
View File

@ -0,0 +1,15 @@
#!/usr/bin/tclsh
#
# Build a ZIP archive for the amalgamation source code found in the current
# directory.
#
set VERSION-file [file dirname [file dirname [file normalize $argv0]]]/VERSION
set fd [open ${VERSION-file} rb]
set vers [read $fd]
close $fd
scan $vers %d.%d.%d major minor patch
set numvers [format {3%02d%02d00} $minor $patch]
set cmd "zip sqlite-amalgamation-$numvers.zip\
sqlite3.c sqlite3.h shell.c sqlite3ext.h"
puts $cmd
exec {*}$cmd