The R Project SVN R-packages

Rev

Rev 3432 | Rev 4160 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

# This is a hand-written shell script

cd src
echo "---- unpacking SQLite ----"
rm -rf SQLite
tar zxf ../sqlite-3.3.7.tar.gz
mv sqlite-3.3.7 SQLite
cd SQLite
echo "---- configuring SQLite ----"
## remove chmod, change to ls
sed -e 's/chmod +x/ls /g; s/chmod u+w/ls /g; s/chmod \d\{3\}/ls /g; s/chmod/ls /g' configure > configure.tmp
mv configure.tmp configure
sh configure --build=i386-pc-mingw32 --disable-shared
echo "---- making SQLite ----"
mv src/sqliteInt.h src/sqliteInt.h.temp
sed -e 's/MAX_ATTACHED 10/MAX_ATTACHED 31/' src/sqliteInt.h.temp > src/sqliteInt.h
## most lines have '$(NAWK)', but one has 'awk'
sed -e 's+./libtool+ sh libtool+' -e's/awk -f /gawk -f/' Makefile > Makefile.tmp
## for some reason opcodes.h gets made incorrectly
make -f Makefile.tmp parse.c opcodes.c
cp ../win/opcodes.h opcodes.h
touch opcodes.h
make -f Makefile.tmp
cp .libs/libsqlite3.a .