Skip to content

Instantly share code, notes, and snippets.

@mitaken
Created February 15, 2015 08:56
Show Gist options
  • Save mitaken/f3defae5a9ed9858dd50 to your computer and use it in GitHub Desktop.
Save mitaken/f3defae5a9ed9858dd50 to your computer and use it in GitHub Desktop.
Git install on XSERVER
#!/bin/sh
#Upload to ~/install.sh
#Run '$ sh install.sh'
#Install gettext
cd ~/
wget http://ftp.gnu.org/pub/gnu/gettext/gettext-latest.tar.gz
mkdir gettext && tar xvf gettext-latest.tar.gz -C gettext --strip-components=1
cd gettext
./configure --prefix=$HOME/local
make install
#Link ~/bin to ~/local/bin
ln -s ~/local/bin ~/bin
#Install git
cd ~/
wget https://github.com/git/git/archive/master.zip
unzip master
cd git-master
autoconf
./configure --prefix=$HOME/local
make all
make install
#Clean up
rm ~/gettext-latest.tar.gz
rm -rf ~/gettext
rm ~/master.zip
rm -rf ~/git-master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment