diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-05-06 13:35:02 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-05-06 13:37:58 +0200 |
commit | 5ce911e8d1b6b15e3053fd701267e146b0281e29 (patch) | |
tree | 3cb0c1af685f8b74871a16f223c00404662acea2 | |
parent | 6e02685821aa107aa1038f5f4a6ee804b85812ca (diff) |
Create a tarball after building the toolchaingcc-4.7.2
-rw-r--r-- | tools/build-toolchains.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/build-toolchains.sh b/tools/build-toolchains.sh index ae46dfe..05f6310 100644 --- a/tools/build-toolchains.sh +++ b/tools/build-toolchains.sh @@ -2,6 +2,8 @@ # Build the Windows cross and native toolchains for x86 and x86_64 WIPE=$1 +CURDIR=`pwd` +set -e for a in "w64" "w32" do @@ -12,5 +14,21 @@ do ./cerbero-uninstalled -c config/mingw-$a-$p.cbc wipe --force fi ./cerbero-uninstalled -c config/mingw-$a-$p.cbc build toolchain + + + if test "x$a" = "xw64"; then + ARCH=x86_64 + else + ARCH=x86 + fi + if test "x$p" = "xwin"; then + PLAT=windows + else + PLAT=linux + fi + echo "Creating tarball mingw-$a-gcc-4.7.2-$PLAT-$ARCH.tar.xz" + cd ~/mingw/$PLAT/$a + XZ_OPT=-9 tar cJf $CURDIR/mingw-$a-gcc-4.7.2-$PLAT-$ARCH.tar.xz * + cd $CURDIR done done |