mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
45 lines
1.9 KiB
Bash
Executable File
45 lines
1.9 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd -P -- "$(dirname -- "$0")"
|
|
|
|
curl -#OL "https://sqlite.org/2024/sqlite-amalgamation-3470000.zip"
|
|
unzip -d . sqlite-amalgamation-*.zip
|
|
mv sqlite-amalgamation-*/sqlite3.c .
|
|
mv sqlite-amalgamation-*/sqlite3.h .
|
|
mv sqlite-amalgamation-*/sqlite3ext.h .
|
|
rm -rf sqlite-amalgamation-*
|
|
|
|
# To test a snapshot:
|
|
# curl -# https://sqlite.org/snapshot/sqlite-snapshot-202410081727.tar.gz | tar xz
|
|
# mv sqlite-snapshot-*/sqlite3.c .
|
|
# mv sqlite-snapshot-*/sqlite3.h .
|
|
# mv sqlite-snapshot-*/sqlite3ext.h .
|
|
# rm -rf sqlite-snapshot-*
|
|
|
|
cat *.patch | patch --no-backup-if-mismatch
|
|
|
|
mkdir -p ext/
|
|
cd ext/
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/ext/misc/anycollseq.c"
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/ext/misc/base64.c"
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/ext/misc/decimal.c"
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/ext/misc/ieee754.c"
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/ext/misc/regexp.c"
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/ext/misc/series.c"
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/ext/misc/spellfix.c"
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/ext/misc/uint.c"
|
|
cd ~-
|
|
|
|
cd ../vfs/tests/mptest/testdata/
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/mptest/mptest.c"
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/mptest/config01.test"
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/mptest/config02.test"
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/mptest/crash01.test"
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/mptest/crash02.subtest"
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/mptest/multiwrite01.test"
|
|
cd ~-
|
|
|
|
cd ../vfs/tests/speedtest1/testdata/
|
|
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.47.0/test/speedtest1.c"
|
|
cd ~- |