|
Revision 824, 1.1 kB
(checked in by Gregor, 1 year ago)
|
*/dsssgdc: Added an explanation for the cleanup error.
|
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#!/bin/bash -x |
|---|
| 2 |
|
|---|
| 3 |
# Sanity |
|---|
| 4 |
if [ ! "$PREFIX" -o \ |
|---|
| 5 |
! "$BIN_PREFIX" -o \ |
|---|
| 6 |
! "$ETC_PREFIX" -o \ |
|---|
| 7 |
! "$INCLUDE_PREFIX" -o \ |
|---|
| 8 |
! "$LIB_PREFIX" ] |
|---|
| 9 |
then |
|---|
| 10 |
echo 'This can only be run through DSSS' |
|---|
| 11 |
exit 1 |
|---|
| 12 |
fi |
|---|
| 13 |
|
|---|
| 14 |
# remove any old stuff |
|---|
| 15 |
rm -rf gcc-4.1.2 |
|---|
| 16 |
|
|---|
| 17 |
# download |
|---|
| 18 |
curl http://ftp.gnu.org/gnu/gcc/gcc-4.1.2/gcc-core-4.1.2.tar.bz2 -o gcc-core.tar.bz2 || exit 1 |
|---|
| 19 |
bunzip2 -c gcc-core.tar.bz2 | tar -xf - || exit 1 |
|---|
| 20 |
curl http://superb-west.dl.sourceforge.net/sourceforge/dgcc/gdc-0.24-src.tar.bz2 -o gdc-0.24-src.tar.bz2 || exit 1 |
|---|
| 21 |
bunzip2 -c gdc-0.24-src.tar.bz2 | tar -xf - || exit 1 |
|---|
| 22 |
rm -rf gcc-4.1.2/gcc/d |
|---|
| 23 |
mv d gcc-4.1.2/gcc || exit 1 |
|---|
| 24 |
|
|---|
| 25 |
# Compile |
|---|
| 26 |
cd gcc-4.1.2 || exit 1 |
|---|
| 27 |
./gcc/d/setup-gcc.sh || exit 1 |
|---|
| 28 |
mkdir build |
|---|
| 29 |
cd build || exit 1 |
|---|
| 30 |
../configure --prefix=$PREFIX --enable-static --disable-shared || exit 1 |
|---|
| 31 |
make all || exit 1 |
|---|
| 32 |
|
|---|
| 33 |
# Install |
|---|
| 34 |
make install |
|---|
| 35 |
|
|---|
| 36 |
# Done :) |
|---|
| 37 |
echo 'Done installing GDC. As of DSSS 0.73, there is a bug in DSSS which will' |
|---|
| 38 |
echo 'cause this build to fail to clean up. If you see an error in the next few' |
|---|
| 39 |
echo 'lines, disregard it - GDC is already installed! Just delete ' |
|---|
| 40 |
pwd |
|---|
| 41 |
echo 'manually.' |
|---|