-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
46 lines (36 loc) · 880 Bytes
/
install.sh
File metadata and controls
46 lines (36 loc) · 880 Bytes
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
prj_dir=$(pwd)
cd ../
if [ -d "./DSA/" ]
then
cd ./DSA/
if [ ! -d "./.git/" ]
then
git init
git remote add origin https://github.com/TheScienceUniverse/DSA.git
fi;
echo "Updating DSA project..."
git pull origin master
cd ../
else
echo "Fetching DSA project..."
git clone https://github.com/TheScienceUniverse/DSA.git --single-branch --depth 1
fi;
cd ./DSA/
echo "Setting up directories..."
mkdir -p ./obj/ ./lib/ ./bin/
echo "Building library..."
make clean
make again
make check &> /dev/null
make ccov &> /dev/null
echo "Creating log directory (DON'T DELETE)..."
mkdir -p ../log/
#cp ./inc/* ../inc/
#cp ./lib/libdsa.so ../lib/
echo "Cleaning up...";
#rm -rf ./.git/ ./.github/ ./aft/ ./bin/ ./cov/ ./doc/ ./font/ ./log/ ./media/ ./obj/ ./src/ ./tst/
#rm -f .gitignore LICENSE
#rm -f Makefile rerun
#rm -f *.c *.sh
cd $prj_dir
echo "...Installation Done!"