-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlibpressio_update.sh
executable file
·97 lines (80 loc) · 1.54 KB
/
libpressio_update.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/env bash
if ! which cmake &> /dev/null
then
echo "cmake must be installed"
exit 1
fi
rootDir=`pwd`
#curl -L https://github.com/CODARcode/MGARD/archive/0.0.0.2.tar.gz | tar zxf -
#mv MGARD-0.0.0.2 MGARD
cd MGARD
git pull
#git checkout 8a1e16949d8ceee881d16e245ea262bd2d924609
cd -
if [[ ! -d zstd ]]; then
git clone https://github.com/facebook/zstd
mkdir -p zstd/builddir
pushd zstd/builddir
cmake ../build/cmake/ -DCMAKE_INSTALL_PREFIX=$rootDir/compressor-install -DCMAKE_INSTALL_LIBDIR=lib
popd
elif
pushd zstd/builddir
make
popd
fi
if [[ ! -d std_compat ]]; then
git clone https://github.com/robertu94/std_compat
mkdir -p std_compat/build
pushd std_compat/build
cmake .. -DCMAKE_INSTALL_PREFIX=$rootDir/compressor-install -DCMAKE_INSTALL_LIBDIR=lib
popd
elif
pushd std_compat/build
make
popd
fi
pushd SZ/builddir
git pull
make -j
make install
popd
mkdir -p SZ/build
pushd SZ/build
git pull
make -j
make install
popd
mkdir -p zfp/build
pushd zfp/build
git pull
make -j
make install
popd
mkdir -p MGARD/build
pushd MGARD/build
git pull
make -j
make install
popd
mkdir -p fpzip/build
pushd fpzip/build
git pull
make -j
make install
popd
mkdir -p BitGroomingZ/build
pushd BitGroomingZ/build
git pull
make -j
make install
popd
LIBPRESSIO_CMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=$rootDir/compressor-install -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_LIBDIR=lib"
mkdir -p libpressio/build
pushd libpressio/build
git pull
make -j
make install
popd
cd $rootDir/mgard-patches
./compile-mgard-zchecker.sh
cd ..