SHARE
TWEET

Untitled

a guest Oct 21st, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash  
  2. #
  3. # Script for naova installation
  4. # Author: Guillaume Poirrier
  5. #
  6. echo "WELCOME TO NAOVA !"
  7. sudo apt update -y
  8. sudo apt install -y git
  9. echo "Code will be stored in \"~/naova\" directory by default"
  10. NAOVA_ROOT=~/naova
  11. read -p "User Git mail :"  usermail
  12. git config --global user.email "$usermail"
  13. read -p "Naova Gitlab username :" username
  14. git config --global user.name "$username"
  15. if ! [ -f $NAOVA_ROOT ]
  16. then
  17.     git clone https://"$username"@gitlab.com/ClubNaova/NaovaCode.git/ $NAOVA_ROOT
  18. fi
  19. echo "Installing libraries..."
  20. sudo apt-get install -y clang-4.0 qtbase5-dev libqt5svg5-dev libglew-dev libxml2-dev graphviz xterm make
  21. while true; do
  22.     read -p "There we go ! ready to build the project ? (make sure you have the NaoQi SDK) [Y/n]" yn
  23.     case $yn in
  24.         [Yy]* ) echo "V--COMPILING--V"
  25.         cd $NAOVA_ROOT/Make/Linux;
  26.         make;
  27.         break
  28.         ;;
  29.         [Nn]* ) break;;
  30.         * ) echo "Please answer yes or no.";;
  31.     esac
  32. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top