From b7c84cadab1e82ce0126baf043c82087f465e74a Mon Sep 17 00:00:00 2001 From: Xandros Desktop OS User Date: Fri, 17 Jul 2009 09:24:58 -0700 Subject: [PATCH] new file --- tdw-experimental/gnu.db | Bin 8192 -> 8192 bytes .../sample-configs/gcc/stow.gcc-4.4.0.sh | 25 ++++++++++++ .../sample-configs/gcc/stow.gcc.sh | 38 ------------------ 3 files changed, 25 insertions(+), 38 deletions(-) create mode 100644 tdw-experimental/sample-configs/gcc/stow.gcc-4.4.0.sh delete mode 100644 tdw-experimental/sample-configs/gcc/stow.gcc.sh diff --git a/tdw-experimental/gnu.db b/tdw-experimental/gnu.db index 336b81178d1635728b98637d936b26ac6fcedd17..321a91e9b1199e2cfe604adb607d45d4c4ccf6f1 100644 GIT binary patch delta 200 zcmZp0XmFSy&8W3e=7q2X7n2MF^F8KW%$>{;%%V)6m`*Y+WpZPZS**yyq@}^d#vraP zshFOVnUw7A7pmZ_;FFnDlvq@0q-SWLXJ}+#V5w_hu4`zv*-dO8BNrF*Tn6U1%y*gR zZsw8bXXfH$7H0(O<(j-)Iu>YG1OxL8=Jm`?%z?~WO#hfJFfC?kVT#zS$YR5!qXo2# eQQTCK3#{;%%V)6m`*Y+WpdlB$fCov*-dO8BL^q* zat7wN%y&2QN%S*M4B(l(Tsju0tA&C22J?F6Cgwn9EvA1=7nl|^wE%TxF>P*BH DdvP3t diff --git a/tdw-experimental/sample-configs/gcc/stow.gcc-4.4.0.sh b/tdw-experimental/sample-configs/gcc/stow.gcc-4.4.0.sh new file mode 100644 index 0000000..aaffba2 --- /dev/null +++ b/tdw-experimental/sample-configs/gcc/stow.gcc-4.4.0.sh @@ -0,0 +1,25 @@ +#!/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 diff --git a/tdw-experimental/sample-configs/gcc/stow.gcc.sh b/tdw-experimental/sample-configs/gcc/stow.gcc.sh deleted file mode 100644 index b791549..0000000 --- a/tdw-experimental/sample-configs/gcc/stow.gcc.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -set -o errexit -VERSION='4.4.0' -BUILD_DIR='gcc-build' - -do_configure () { - mkdir ../${BUILD_DIR} && - cd ../${BUILD_DIR} && - ../gcc-${VERSION}/configure \ - --prefix=/usr \ -# --libexecdir=/usr/lib \ - --enable-shared \ - --enable-threads=posix \ - --enable-__cxa_atexit \ - --enable-clocale=gnu \ -# --enable-languages=c,c++,ada,fortran,java,objc,treelang - --enable-languages=c,c++ && - cd - -} - -do_build () { - cd ../${BUILD_DIR} - make - sudo make DESTDIR=/stow/gcc-${VERSION} install - cd - -} - -do_package () { - cd /stow - tar -cjvf gcc-${VERSION}.stow.tar.bz2 gcc-${VERSION} - mkdir --parent STOWBALLS - mv tar -cjvf gcc-${VERSION}.stow.tar.bz2 STOWBALLS - cd - -} - -do_configure -do_build -do_package