forked from textbrowser/biblioteq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbiblioteq-download-dependencies.bash
executable file
·69 lines (54 loc) · 1.66 KB
/
biblioteq-download-dependencies.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
# Must be executed in the top-level source directory.
# PostgreSQL
postgresql=postgresql.zip
rm -f $postgresql
wget --output-document=$postgresql \
--progress=bar \
"https://get.enterprisedb.com/postgresql/postgresql-10.20-1-windows-binaries.zip"
if [ -r $postgresql ]; then
unzip -q $postgresql
mv pgsql/lib/libpq.dll Libraries.win32/postgresql/.
mv 'pgsql/pgAdmin 4/bin/libiconv-2.dll' Libraries.win32/postgresql/.
mv 'pgsql/pgAdmin 4/bin/libintl-8.dll' Libraries.win32/postgresql/.
mv 'pgsql/pgAdmin 4/venv/DLLs/libcrypto-1_1.dll' \
Libraries.win32/postgresql/.
mv 'pgsql/pgAdmin 4/venv/DLLs/libssl-1_1.dll' Libraries.win32/postgresql/.
mv pgsql/bin/libx*.dll Libraries.win32/postgresql/.
chmod +r,+w,-x Libraries.win32/postgresql/*
rm -f $postgresql
rm -fr pgsql
else
echo "Cannot read $postgresql."
fi
# SQLite Binaries
sqlite=sqlite-dll-win32-x86-3380200.zip
rm -f $sqlite
wget --progress=bar https://sqlite.org/2022/$sqlite
if [ -r $sqlite ]; then
unzip -q -o $sqlite
mv sqlite3.def sqlite3.dll Libraries.win32/sqlite3/.
chmod +r,+w,-x Libraries.win32/sqlite3/*.dll
rm -f $sqlite
else
echo "Cannot read $sqlite."
fi
# SQLite Source
sqlite=sqlite-amalgamation-3380200.zip
rm -f $sqlite
wget --progress=bar https://sqlite.org/2022/$sqlite
if [ -r $sqlite ]; then
unzip -q -o $sqlite
rm -f $sqlite
else
echo "Cannot read $sqlite."
fi
sqlite=sqlite-amalgamation-3380200
if [ -r $sqlite ]; then
cp $sqlite/*.h Android/sqlite3/.
cp $sqlite/*.h Include.win32/sqlite3/.
cp $sqlite/sqlite3.c Android/sqlite3/.
rm -fr $sqlite
else
echo "Cannot read $sqlite."
fi