-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·29 lines (20 loc) · 936 Bytes
/
bootstrap.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
#!/bin/bash
echo "Cerebellum library bootstrap for Antares"
if [[ -n $ANTARES_INSTALL_DIR ]]; then
if [[ -a $ANTARES_INSTALL_DIR/src/lib/contrib/cerebellum ]]; then
echo "Looks like Cerebellum library is linked into Antares environment..."
echo "Nothing to be done."
exit
fi
echo "Installing library for Antares..."
echo "Symlinking..."
ln -sf `pwd`/src/ $ANTARES_INSTALL_DIR/src/lib/contrib/cerebellum
ln -sf `pwd`/include/ $ANTARES_INSTALL_DIR/include/lib/cerebellum
echo "Add kcnf info..."
echo "source antares/src/lib/contrib/cerebellum/kcnf" >> $ANTARES_INSTALL_DIR/src/lib/contrib/kcnf
echo "subdirs-\$(CONFIG_LIB_CEREBELLUM)+=cerebellum" >> $ANTARES_INSTALL_DIR/src/lib/contrib/Makefile
echo "Done."
else
echo "Antares environment is not found!"
echo "Nothing to be done."
fi