Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # Script for naova installation
- # Author: Guillaume Poirrier
- #
- echo "WELCOME TO NAOVA !"
- sudo apt update -y
- sudo apt install -y git
- echo "Code will be stored in \"~/naova\" directory by default"
- NAOVA_ROOT=~/naova
- read -p "User Git mail :" usermail
- git config --global user.email "$usermail"
- read -p "Naova Gitlab username :" username
- git config --global user.name "$username"
- if ! [ -f $NAOVA_ROOT ]
- then
- git clone https://"$username"@gitlab.com/ClubNaova/NaovaCode.git/ $NAOVA_ROOT
- fi
- echo "Installing libraries..."
- sudo apt-get install -y clang-4.0 qtbase5-dev libqt5svg5-dev libglew-dev libxml2-dev graphviz xterm make
- while true; do
- read -p "There we go ! ready to build the project ? (make sure you have the NaoQi SDK) [Y/n]" yn
- case $yn in
- [Yy]* ) echo "V--COMPILING--V"
- cd $NAOVA_ROOT/Make/Linux;
- make;
- break
- ;;
- [Nn]* ) break;;
- * ) echo "Please answer yes or no.";;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement