-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·57 lines (43 loc) · 1.58 KB
/
build.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
#!/bin/bash
PROJECT_DIR=`pwd`
DEPENDENS_SRC_DIR=$PROJECT_DIR/local/src
DEPENDENS_INSTALL_DIR=$PROJECT_DIR/local
RED='\e[1;31m'
EC='\033[m'
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$DEPENDENS_INSTALL_DIR/lib/pkgconfig
echo -e ${RED}changing PKG_CONFIG_PATH to ${EC} ${PKG_CONFIG_PATH}
echo -e ${RED}creating install directory ${EC} $DEPENDENCE_SRC_DIR
mkdir -p ${DEPENDENS_SRC_DIR}
######################################
# get ND
#echo -e ${RED}Fetching autolab-nd ${EC}
#cd ${DEPENDENS_SRC_DIR}
#git clone [email protected]:rtv/autolab-nd.git
#cd ${DEPENDENS_SRC_DIR}/autolab-nd
#echo -e ${RED}Reverting autolab-nd to the correct version ${EC}
#git reset --hard e603ecadda99c8ee6de4cd34c1afd17c406312cb
######################################
# get RAPI
echo -e ${RED}Fetching autolab-rapi ${EC}
cd ${DEPENDENS_SRC_DIR}
git clone [email protected]:jwawerla/autolab-rapi.git
cd ${DEPENDENS_SRC_DIR}/autolab-rapi
echo -e ${RED}Reverting autolab-rapi to the correct version ${EC}
#git reset --hard 4b5038ae10003b6231cb8d7d186df8c229689ab4
######################################
# Install rapi
echo -e ${RED}Installing autolab-rapi ${EC}
cd ${DEPENDENS_SRC_DIR}/autolab-rapi
cmake -DCMAKE_INSTALL_PREFIX=${DEPENDENS_INSTALL_DIR}
make -j5
make install
######################################
# Install nd
#echo -e ${RED}Installing autolab-nd ${EC}
#cd ${DEPENDENS_SRC_DIR}/autolab-nd
#cmake -DCMAKE_INSTALL_PREFIX=${DEPENDENS_INSTALL_DIR} -DPKG_CONFIG_PATH=$DEPENDENS_INSTALL_DIR/lib/pkconfig
#make install
######################################
# Finishing up
# change back to project dir and we are done
cd $PROJECT_DIR