summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-30 23:20:06 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-30 23:20:06 +0000
commit7b9f01e0ae1e4e36dd61a3e547a68b9271206caa (patch)
treefc00a6bebac0193fcb16169c43b3dba78268f7fa /tools
parent8624535b8036a245952fabd27108ea681a694f04 (diff)
downloadopenocd_libswd-7b9f01e0ae1e4e36dd61a3e547a68b9271206caa.tar.gz
openocd_libswd-7b9f01e0ae1e4e36dd61a3e547a68b9271206caa.tar.bz2
openocd_libswd-7b9f01e0ae1e4e36dd61a3e547a68b9271206caa.tar.xz
openocd_libswd-7b9f01e0ae1e4e36dd61a3e547a68b9271206caa.zip
Document and automate signature creation for the release archives.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2783 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'tools')
-rwxr-xr-xtools/release.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/release.sh b/tools/release.sh
index 5511f101..c1f7f7c2 100755
--- a/tools/release.sh
+++ b/tools/release.sh
@@ -262,7 +262,14 @@ do_stage() {
echo "Staging package archives:"
mkdir -p archives
for EXT in tar.gz tar.bz2 zip; do
- mv -v "${PACKAGE_RELEASE}.${EXT}" archives/
+ local FILE="${PACKAGE_RELEASE}.${EXT}"
+ # create archive signatures
+ for HASH in md5 sha1; do
+ echo "sign: ${FILE}.${HASH}"
+ ${HASH}sum "${FILE}" > "archives/${FILE}.${HASH}"
+ done
+ # save archive
+ mv -v "${FILE}" archives/
done
cp -a NEWS archives/
cp -a ChangeLog archives/