This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
forked from TileDB-Inc/rwinlib-tiledb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_ucrt_only.sh
executable file
·45 lines (38 loc) · 1.62 KB
/
update_ucrt_only.sh
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
#!/bin/bash
## From the rtools4 (and *not* msys2 which is the next compiler set,
## aka what may be used for 'r-devel') build: download the two artifacts
## to the ~/Downloads/ directory (i.e. the default location on Ubuntu)
## eg for 2.2.2 the URL is https://github.com/TileDB-Inc/TileDB/runs/1766128541
##
## And now also updated for 'ucrt' builds
##
for f in mingw-w64-ucrt64-tiledb.zip; do
#for f in mingw-w64-MINGW32-tiledb.zip mingw-w64-MINGW64-tiledb.zip mingw-w64-ucrt64-tiledb.zip; do
mv -v ~/Downloads/${f} .
unzip ${f}
rm ${f}
done
# tar xaf mingw-w64-i686-tiledb-2.9000-1-any.pkg.tar.xz
# ver=$(strings lib/x64/libtiledbstatic.a | awk '/^GCC: \(Built by Jeroen/ {print $8; exit}')
# if [ ${ver} != "8.3.0" ]; then
# echo "Wrong format. Exiting."
# exit -1
# fi
# rsync -cav mingw32/include/tiledb/ include/tiledb/
# #rsync -cav mingw32/lib/libtiledbstatic.a lib/i386/libtiledbstatic.a
# rsync -cav mingw32/lib/lib*.a lib/i386/
# rm -rf mingw32
# rm -v mingw-w64-i686-tiledb-2.9000-1-any.pkg.tar.xz
# tar xaf mingw-w64-x86_64-tiledb-2.9000-1-any.pkg.tar.xz
# rsync -cav mingw64/include/tiledb/ include/tiledb/
# #rsync -cav mingw64/lib/libtiledbstatic.a lib/x64/libtiledbstatic.a
# rsync -cav mingw64/lib/lib*.a lib/x64/
# rm -rf mingw64
# rm -v mingw-w64-x86_64-tiledb-2.9000-1-any.pkg.tar.xz
tar xaf mingw-w64-ucrt-x86_64-tiledb-2.9000-1-any.pkg.tar.xz
rsync -cav ucrt64/include/tiledb/ include/tiledb/
#rsync -cav ucrt64/lib/libtiledbstatic.a lib/x64-ucrt/libtiledbstatic.a
rsync -cav ucrt64/lib/lib*.a lib/x64-ucrt/
rm -rf ucrt64
rm -v mingw-w64-ucrt-x86_64-tiledb-2.9000-1-any.pkg.tar.xz
rm .BUILDINFO .MTREE .PKGINFO