publish_osx.sh

来自「最新的sqlite3.6.2源代码」· Shell 代码 · 共 36 行

SH
36
字号
#!/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 ./Makefilechmod +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 cleanmake sqlite3.cCFLAGS="-Os -DSQLITE_ENABLE_FTS3=1 -DSQLITE_THREADSAFE=0"NAME=sqlite3-$VERS-osx-x86.binecho '***** '"COMPILING $NAME..."gcc $CFLAGS -Itsrc sqlite3.c tsrc/shell.c -o $NAME -ldlstrip $NAMEchmod 644 $NAMEgzip $NAMEmkdir -p docmv $NAME.gz doc

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?