sqlite-parquet-vtable/build-sqlite

31 lines
469 B
Plaintext
Raw Normal View History

2018-03-02 23:46:40 +00:00
#!/bin/bash
set -euo pipefail
VERSION=3220000
fetch_if_needed() {
if [ ! -e sqlite ]; then
curl --fail "https://sqlite.org/2018/sqlite-autoconf-${VERSION}.tar.gz" > sqlite.tar.gz
tar xf sqlite.tar.gz
rm sqlite.tar.gz
mv sqlite-autoconf-${VERSION} sqlite
2018-03-02 23:46:40 +00:00
fi
}
build() {
cd sqlite
2018-07-05 13:13:37 +00:00
./configure
2018-06-27 03:05:30 +00:00
make -j$(nproc)
2018-03-02 23:46:40 +00:00
}
main() {
here=$(dirname "${BASH_SOURCE[0]}")
here=$(readlink -f "$here")
cd "$here"
fetch_if_needed
build
}
main "$@"