Created
February 15, 2015 08:56
-
-
Save mitaken/f3defae5a9ed9858dd50 to your computer and use it in GitHub Desktop.
Git install on XSERVER
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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