summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2013-05-06 13:42:18 (GMT)
committerAndoni Morales Alastruey <ylatuya@gmail.com>2013-05-06 14:03:10 (GMT)
commitf78ae16d61d203ab2d56a9aaad2fa90a66f826a0 (patch)
treeaf399e57c0e1f602be122c2a804059064758949a
parent998305e038b130360b502269f6dcd6583ab54e99 (diff)
downloadcerbero-f78ae16d61d203ab2d56a9aaad2fa90a66f826a0.tar.gz
cerbero-f78ae16d61d203ab2d56a9aaad2fa90a66f826a0.tar.xz
Add md5 and sha1 hash after creating the tarball
-rw-r--r--tools/build-toolchains.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/build-toolchains.sh b/tools/build-toolchains.sh
index 05f6310..aee0f30 100644
--- a/tools/build-toolchains.sh
+++ b/tools/build-toolchains.sh
@@ -26,9 +26,12 @@ do
else
PLAT=linux
fi
- echo "Creating tarball mingw-$a-gcc-4.7.2-$PLAT-$ARCH.tar.xz"
+ TC=mingw-$a-gcc-4.7.2-$PLAT-$ARCH.tar.xz
+ echo "Creating tarball $TC"
cd ~/mingw/$PLAT/$a
- XZ_OPT=-9 tar cJf $CURDIR/mingw-$a-gcc-4.7.2-$PLAT-$ARCH.tar.xz *
+ XZ_OPT=-9 tar cJf $CURDIR/$TC *
cd $CURDIR
+ md5sum $TC | awk '{print $1}' > $TC.md5
+ sha1sum $TC | awk '{print $1}' > $TC.sha1
done
done