Skip to content

Instantly share code, notes, and snippets.

@jasonrm
Created July 20, 2009 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonrm/150129 to your computer and use it in GitHub Desktop.
Save jasonrm/150129 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Very, very basic... and stupid. But I reinstall my systems a lot so maybe this will make it less painful.
current_coreutils="http://ftp.gnu.org/gnu/coreutils/coreutils-7.4.tar.gz"
current_gnupg="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.9.tar.gz"
current_wget="http://ftp.gnu.org/gnu/wget/wget-1.11.4.tar.gz"
# Make sure we have gcc...
gcc="`which gcc`"
if [ -f "$gcc" ]; then
echo gcc found!
else
echo gcc not-found
exit
fi
mkdir -p ~/src
cd ~/src
wget -c $current_coreutils
wget -c $current_gnupg
wget -c $current_wget
file_coreutils=${current_coreutils##*/}
file_gnupg=${current_gnupg##*/}
file_wget=${current_wget##*/}
dir_coreutils=${file_coreutils%%.tar.gz}
dir_gnupg=${file_gnupg%%.tar.gz}
dir_wget=${file_wget%%.tar.gz}
tar xf $file_coreutils
tar xf $file_gnupg
tar xf $file_wget
cd $dir_coreutils
./configure
sudo make install
cd ../$dir_gnupg
./configure
sudo make install
cd ../$dir_wget
./configure
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment