stow/tdw-experimental/sample-configs/gcc/stow.gcc-4.4.0.sh

26 lines
499 B
Bash
Raw Normal View History

2009-07-17 12:24:58 -04:00
#!/bin/bash
set -o errexit
VERSION='4.4.0'
do_configure () {
mkdir ../gcc-build && cd ../gcc-build
../gcc-4.4.0/configure --prefix=/usr/local
}
do_build () {
make
sudo make DESTDIR=/stow/gcc-${VERSION} install
}
do_package () {
cd /stow
sudo tar -cjvf gcc-${VERSION}.stow.tar.bz2 gcc-${VERSION}
sudo mkdir --parent STOWBALLS
sudo mv --verbose gcc-${VERSION}.stow.tar.bz2 STOWBALLS
echo "Remember to stow and /sbin/ldconfig"
}
do_configure
do_build
do_package