Skip to content

Instantly share code, notes, and snippets.

@v6
Created November 8, 2013 07:13
Show Gist options
  • Save v6/7367360 to your computer and use it in GitHub Desktop.
Save v6/7367360 to your computer and use it in GitHub Desktop.
ripplolforubuntu13.10 alpha version 0.0.48646
#!/bin/bash
## chmod 755 me, please, Mr. admin?
## version Cat
echo Itsa path time. Everyone to the tub!
echo "PATH DEFAULT=$(PATH):${HOME}/home/nbas/bin/boost/bin/" >> ~/.pam_environment
export $PATH:${HOME}/bin
export PATH=$PATH:${HOME}/bin/
echo """PATH DEFAULT=$(PATH):${HOME}/bin/boost/bin/""" >> ~/.pam_environment
echo 'PATH DEFAULT=$(PATH):${HOME}/bin/boost/bin/:node_modules/buster/bin' >> ~/.pam_environment
## init 6?
sudo apt-get update;
sudo apt-get upgrade;
##Install Git
sudo apt-get install git;
##Install Scons
sudo apt-get install scons;
##Install CTags
sudo apt-get install ctags;
##Install Package Config
sudo apt-get install pkg-config;
##Install Dependencies
##Install Google Protocol Buffers Compiler
echo BEGIN external dependency installations. Quail (or duck, somehow birds keep getting used as metaphors for fear) in apprehension. It might not work.
sudo apt-get install protobuf-compiler;
sudo apt-get install libprotobuf-dev;
##Install OpenSSL
sudo apt-get install libssl-dev;
##Install Boost
if [`cat /etc/issue` == "Ubuntu 12.04 \n \l" ]
then
##Ubuntu 12.04 only:
echo installing for Ubuntu 12.04. If your numbers are less than 12.04, STAHP. Call me at 4086576639. ;
sudo apt-get install libboost1.48-all-dev;
else
echo Ubuntu 12.10 and up: install libboost-all-dev;
sudo apt-get install libboost-all-dev;
fi
##Clone that repo.
if [`cat /etc/issue` == "Ubuntu 12.04 \n \l" ]
##TO DO : Set up for a case in which add-apt-repository is not present. Oh, wait, ripplol. I'll just add it in here!
##Stream of commentsciousness.
sudo apt-get install python-software-properties;
sudo add-apt-repository ppa:ubuntu-toolchain-r/test;
sudo apt-get update;
sudo apt-get install gcc-4.7 g++-4.7;
##Configure alternatives to allow you to switch to/from 4.6/4.7
echo 'Configure alternatives to allow you to switch to/from 4.6/4.7'
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6;
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7;
##Select which version of gcc you wish to use (note for building develop and/or release branch select 4.7)
echo 'Select which version of gcc you wish to use (note for building develop and/or release branch select 4.7)'
sudo update-alternatives --config gcc;
fi
read -p "Press [Enter] key to start scons, (or, because this is q&d, ctrl-c to quit)..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment