-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·31 lines (24 loc) · 1.08 KB
/
install.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
#!/bin/bash
cp libs/bamtools_CMakeLists.txt libs/bamtools/CMakeLists.txt
cp libs/bamtools_src_CMakeLists.txt libs/bamtools/src/CMakeLists.txt
cp libs/bamtools_src_api_CMakeLists.txt libs/bamtools/src/api/CMakeLists.txt
cp libs/sqlite3pp_src_CMakeLists.txt libs/sqlite3pp/src/CMakeLists.txt
FLAG_SQLITE_INCLUDED=1;
if [ ! $FLAG_SQLITE_INCLUDED ]
then
echo "Downloading SQLite3 base..."
wget -N -q -A.zip "http://www.sqlite.org/2015/sqlite-amalgamation-3080802.zip" -P "./libs" || exit 1;
cp "libs/sqlite3pp_src_sqlite_CMakeLists.txt" "libs/sqlite3pp/src/sqlite-amalgamation-3080802/CMakeLists.txt"
unzip "libs/sqlite-amalgamation-3080802.zip" -d "libs/sqlite3pp/src/" || exit 1;
else
echo "====================================================="
fi
mkdir build
cd build && rm -rf ./*
cmake .. || exit 1;
make || exit 1;
cd ../bin || ( echo "hmm. something went wrong... \n No 'bin' directory has been produced."; exit 1;)
ls -l
echo "======================================================="
echo "go to the directory './vshape-#.#.#' and run './vshape'"
echo " good luck! "