github.com/ncruces/go-sqlite3@v0.15.1-0.20240520133447-53eef1510ff0/sqlite3/download.sh (about)

     1  #!/usr/bin/env bash
     2  set -euo pipefail
     3  
     4  cd -P -- "$(dirname -- "$0")"
     5  
     6  curl -#OL "https://sqlite.org/2024/sqlite-amalgamation-3450300.zip"
     7  unzip -d . sqlite-amalgamation-*.zip
     8  mv sqlite-amalgamation-*/sqlite3* .
     9  rm -rf sqlite-amalgamation-*
    10  
    11  cat *.patch | patch --no-backup-if-mismatch
    12  
    13  mkdir -p ext/
    14  cd ext/
    15  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/ext/misc/anycollseq.c"
    16  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/ext/misc/base64.c"
    17  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/ext/misc/decimal.c"
    18  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/ext/misc/ieee754.c"
    19  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/ext/misc/regexp.c"
    20  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/ext/misc/series.c"
    21  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/ext/misc/uint.c"
    22  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/ext/misc/uuid.c"
    23  cd ~-
    24  
    25  cd ../vfs/tests/mptest/testdata/
    26  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/mptest/mptest.c"
    27  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/mptest/config01.test"
    28  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/mptest/config02.test"
    29  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/mptest/crash01.test"
    30  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/mptest/crash02.subtest"
    31  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/mptest/multiwrite01.test"
    32  cd ~-
    33  
    34  cd ../vfs/tests/speedtest1/testdata/
    35  curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.45.3/test/speedtest1.c"
    36  cd ~-