forked from colonelpanic/dotfiles
Updating things for web_start.
This commit is contained in:
parent
da4104da8d
commit
b3d5da867d
@ -3,3 +3,5 @@ $INSTALL zsh
|
|||||||
$INSTALL tmux
|
$INSTALL tmux
|
||||||
$INSTALL emacs24-nox
|
$INSTALL emacs24-nox
|
||||||
$INSTALL nmap
|
$INSTALL nmap
|
||||||
|
$INSTALL python2.7
|
||||||
|
$INSTALL python-pip python-dev
|
2
.emacs.d
2
.emacs.d
@ -1 +1 @@
|
|||||||
Subproject commit 6cb2971d55b295ae652000297ce46c96895b68fb
|
Subproject commit 762972297eddff85249c8ce57eaa385d2bb0cad5
|
38
setup.sh
38
setup.sh
@ -1,48 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# Assumes that gcc, make and git as well as a package manager (brew,
|
||||||
|
# apt-get) is installed on the system.
|
||||||
|
|
||||||
# Go to the source directory of this script.
|
# Go to the source directory of this script.
|
||||||
cd "$(dirname "${BASH_SOURCE}")"
|
cd "$(dirname "${BASH_SOURCE}")"
|
||||||
|
|
||||||
function install_essentials() {
|
|
||||||
case `uname` in
|
case `uname` in
|
||||||
'Darwin')
|
'Darwin')
|
||||||
hash gcc &>/dev/null
|
|
||||||
if [ $? -ne 0 ]
|
|
||||||
then
|
|
||||||
echo "gcc not found."
|
|
||||||
exit
|
|
||||||
case `sw_vers | grep ProductVersion | awk '{print $2}' | awk 'BEGIN{FS="."}{print $2}'` in
|
|
||||||
'8')
|
|
||||||
echo 'Mountain Lion Detected.'
|
|
||||||
;;
|
|
||||||
'7')
|
|
||||||
echo 'Lion Detected.'
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
exit -1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
echo "gcc found."
|
|
||||||
source ~/.osx
|
|
||||||
fi
|
|
||||||
hash brew &>/dev/null && echo "brew found." || ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
|
|
||||||
source .brew
|
source .brew
|
||||||
;;
|
;;
|
||||||
'Linux')
|
'Linux')
|
||||||
echo "Linux detected."
|
source .apt-get
|
||||||
hash apt-get &>/dev/null || (echo 'apt-get is missing.' && exit)
|
|
||||||
echo "apt-get found."
|
|
||||||
sudo apt-get -y install build-essential
|
|
||||||
sudo apt-get -y install git
|
|
||||||
sudo git clone git@github.com:IvanMalison/dotfiles.git
|
|
||||||
cd dotfiles
|
|
||||||
source .debian
|
|
||||||
;;
|
;;
|
||||||
*)
|
|
||||||
echo "Operating System not recognized; aborting."
|
|
||||||
exit
|
|
||||||
esac
|
esac
|
||||||
}
|
|
||||||
|
|
||||||
function install_python_packages() {
|
function install_python_packages() {
|
||||||
sudo -v
|
sudo -v
|
||||||
|
30
web_start.sh
Executable file
30
web_start.sh
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
function debian() {
|
||||||
|
hash apt-get &>/dev/null || (echo 'apt-get is missing.' && exit)
|
||||||
|
sudo apt-get -y install build-essential
|
||||||
|
sudo apt-get -y install git
|
||||||
|
}
|
||||||
|
|
||||||
|
function osx() {
|
||||||
|
hash gcc &>/dev/null
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
echo "gcc not found."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
hash brew &>/dev/null && echo "brew found" || ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
|
||||||
|
brew update
|
||||||
|
brew install git
|
||||||
|
}
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
'Darwin')
|
||||||
|
osx
|
||||||
|
;;
|
||||||
|
'Linux')
|
||||||
|
debian
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
git clone git@github.com:IvanMalison/dotfiles.git
|
||||||
|
cd dotfiles
|
Loading…
Reference in New Issue
Block a user