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 16:03:10 +0200 |
commit | 998305e038b130360b502269f6dcd6583ab54e99 (patch) | |
tree | dd3e6d14faddece05549ac39d010e2dcda2eb716 /tools | |
parent | 44a661dc422f15ddbc7c755a9f0720ce9787f362 (diff) |
Create a tarball after building the toolchain
Diffstat (limited to 'tools')
-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 |