]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add the publish_osx.sh script for building binaries for OSX (CVS 4568)
authordrh <drh@noemail.net>
Tue, 27 Nov 2007 18:30:38 +0000 (18:30 +0000)
committerdrh <drh@noemail.net>
Tue, 27 Nov 2007 18:30:38 +0000 (18:30 +0000)
FossilOrigin-Name: 9bd7c31496d1d2959761c09a4cfa94662891b81c

manifest
manifest.uuid
publish_osx.sh [new file with mode: 0644]

index e32a8e62056983a5865b4570770d0e46ec6c048d..27faeb50cc0c7dea17a8da628c986b155322bc00 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Update\sthe\s"publish.sh"\sscripts\sused\sto\sbuild\sthe\sbinaries\sfor\sthe\swebsite.\s(CVS\s4567)
-D 2007-11-27T17:38:14
+C Add\sthe\spublish_osx.sh\sscript\sfor\sbuilding\sbinaries\sfor\sOSX\s(CVS\s4568)
+D 2007-11-27T18:30:38
 F Makefile.arm-wince-mingw32ce-gcc ac5f7b2cef0cd850d6f755ba6ee4ab961b1fadf7
 F Makefile.in 35396fd58890420b29edcf27b6c0e2d054862a6b
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -72,6 +72,7 @@ F mkopcodec.awk 3fb9bf077053c968451f4dd03d11661ac373f9d1
 F mkopcodeh.awk 799a299eaf3173c0f8ac0bd7c4b49c0f4d4590ca
 F mkso.sh 24bde4c09e6fe80f718db3c31c068f45e13a2f2c
 F publish.sh 4e1b331bd7f7b6a8d8a9db2a84e3d673ff66f299
+F publish_osx.sh efe4cb6502e81139ac77bc1f5c1b682ebfee1e79
 F spec.template b2f6c4e488cbc3b993a57deba22cbc36203c4da3
 F sqlite.pc.in 30552343140c53304c2a658c080fbe810cd09ca2
 F sqlite3.1 6be1ad09113570e1fc8dcaff84c9b0b337db5ffc
@@ -592,7 +593,7 @@ F www/tclsqlite.tcl 8be95ee6dba05eabcd27a9d91331c803f2ce2130
 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
 F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
 F www/whentouse.tcl fc46eae081251c3c181bd79c5faef8195d7991a5
-P a39007d5b1f0d8925153ab3aac44fd655ed2536e
-R f5c5c3293e010309c707626336f36efd
+P 2f748318fbb8ac4614c07629506b3955ce4fe20d
+R 4941b1ac021b5038e43b90b71e52d884
 U drh
-Z d749c1e822fb8933641979eabff7aa02
+Z a890a0c3f15bc2f31c80b6f6987769d6
index e4ec69b15f3e17e4b41addc24f3cc26f7afd3dbb..192b1e06bfa52a3b4e416f7f54b51804f0ae9eac 100644 (file)
@@ -1 +1 @@
-2f748318fbb8ac4614c07629506b3955ce4fe20d
\ No newline at end of file
+9bd7c31496d1d2959761c09a4cfa94662891b81c
\ No newline at end of file
diff --git a/publish_osx.sh b/publish_osx.sh
new file mode 100644 (file)
index 0000000..572d7b3
--- /dev/null
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+# This script is used to compile SQLite and package everything up
+# so that it is ready to move to the SQLite website.
+#
+
+# Set srcdir to the name of the directory that contains the publish.sh
+# script.
+#
+srcdir=`echo "$0" | sed 's%\(^.*\)/[^/][^/]*$%\1%'`
+
+# Get the makefile.
+#
+cp $srcdir/Makefile.linux-gcc ./Makefile
+chmod +x $srcdir/install-sh
+
+# Get the current version number - needed to help build filenames
+#
+VERS=`cat $srcdir/VERSION`
+VERSW=`sed 's/\./_/g' $srcdir/VERSION`
+echo "VERSIONS: $VERS $VERSW"
+
+# Start by building an sqlite shell for linux.
+#
+make clean
+make sqlite3.c
+make fts3amal.c
+cat fts3amal.c >>sqlite3.c
+CFLAGS="-Os -DSQLITE_ENABLE_FTS3=1 -DSQLITE_THREADSAFE=0"
+NAME=sqlite3-$VERS-osx-x86.bin
+echo '***** '"COMPILING $NAME..."
+gcc $CFLAGS -Itsrc sqlite3.c tsrc/shell.c -o $NAME -ldl -lpthread
+strip $NAME
+chmod 644 $NAME
+gzip $NAME
+mkdir -p doc
+mv $NAME.gz doc