Generate sha1 and md5 sum file for wheels

The run-wheel.sh script echoed sha1 and md5 sums to the job console log
but did not write these hashes to files. Write these hashes to files
then cat them so that the hashes can be archived while still being
written to the console log.

Change-Id: If8d9eb8d730401938f8610bef355b5ca15723269
This commit is contained in:
Clark Boylan 2014-06-01 21:42:58 -07:00 committed by Jeremy Stanley
parent 48f8c9b7f3
commit cb7c7657ee

View File

@ -32,7 +32,12 @@ rm -f dist/*.whl
tox -evenv pip install wheel
tox -evenv python setup.py bdist_wheel
echo "SHA1sum: "
sha1sum dist/*
echo "MD5sum: "
md5sum dist/*
FILES=dist/*.whl
for f in $FILES
do
echo -n "SHA1sum for $f: "
sha1sum $f | awk '{print $1}' | tee $f.sha1
echo -n "MD5sum for $f: "
md5sum $f | awk '{print $1}' | tee $f.md5
done