From: drh Date: Tue, 27 Nov 2007 18:30:38 +0000 (+0000) Subject: Add the publish_osx.sh script for building binaries for OSX (CVS 4568) X-Git-Tag: version-3.6.10~1609 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7771c541ddc3356f5100a7c55cbb927aa2c3a5f9;p=thirdparty%2Fsqlite.git Add the publish_osx.sh script for building binaries for OSX (CVS 4568) FossilOrigin-Name: 9bd7c31496d1d2959761c09a4cfa94662891b81c --- diff --git a/manifest b/manifest index e32a8e6205..27faeb50cc 100644 --- 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 diff --git a/manifest.uuid b/manifest.uuid index e4ec69b15f..192b1e06bf 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -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 index 0000000000..572d7b300d --- /dev/null +++ b/publish_osx.sh @@ -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