Author: nickboldt
Date: 2010-12-02 18:48:47 -0500 (Thu, 02 Dec 2010)
New Revision: 27131
Modified:
trunk/build/publishComponentZipToStaging.sh
trunk/build/publishUpdateZipToStaging.sh
Log:
md5 sum file should only contain the hash
Modified: trunk/build/publishComponentZipToStaging.sh
===================================================================
--- trunk/build/publishComponentZipToStaging.sh 2010-12-02 23:39:33 UTC (rev 27130)
+++ trunk/build/publishComponentZipToStaging.sh 2010-12-02 23:48:47 UTC (rev 27131)
@@ -35,8 +35,9 @@
#echo "Fetch ${path} as ${targetZip}"
# to test locally, may need to use --protocol=29 and -P instead of -q
date; rsync -arzq --rsh=ssh ${DESTINATION}/builds/staging/${JOBNAMEREDUX}/${path}
${targetZip}
+
# generate MD5 sums for each zip
- md5sum ${targetZip} > ${targetZip}.MD5
+ for m in $(md5sum ${targetZip}); do if [[ $m != ${targetZip} ]]; then echo $m >
${targetZip}.MD5; fi; done
#echo "Publish ${path} as ${targetZip}"
# to test locally, may need to use --protocol=29 and -P instead of -q
Modified: trunk/build/publishUpdateZipToStaging.sh
===================================================================
--- trunk/build/publishUpdateZipToStaging.sh 2010-12-02 23:39:33 UTC (rev 27130)
+++ trunk/build/publishUpdateZipToStaging.sh 2010-12-02 23:48:47 UTC (rev 27131)
@@ -17,12 +17,14 @@
# get zip name from zip.list.txt
path=$(wget -q
http://download.jboss.org/jbosstools/builds/staging/${JOBNAMEREDUX}/logs/... -O -
| egrep -- "-Update-" | head -1 | sed "s#,\\\\##");
-#echo "Fetch ${path} as ${JOBNAMEREDUX}-Update.zip"
+targetZip="${JOBNAMEREDUX}-Update.zip"
+#echo "Fetch ${path} as ${targetZip}"
# to test locally, may need to use --protocol=29 and -P instead of -q
-date; rsync -arzq --rsh=ssh ${DESTINATION}/builds/staging/${JOBNAMEREDUX}/${path}
${JOBNAMEREDUX}-Update.zip
+date; rsync -arzq --rsh=ssh ${DESTINATION}/builds/staging/${JOBNAMEREDUX}/${path}
${targetZip}
+
# generate MD5 sum for each zip
-md5sum ${JOBNAMEREDUX}-Update.zip > ${JOBNAMEREDUX}-Update.zip.MD5
+for m in $(md5sum ${targetZip}); do if [[ $m != ${targetZip} ]]; then echo $m >
${targetZip}.MD5; fi; done
-#echo "Publish ${path} as ${JOBNAMEREDUX}-Update.zip"
+#echo "Publish ${path} as ${targetZip}"
# to test locally, may need to use --protocol=29 and -P instead of -q
-date; rsync -arzq --rsh=ssh ${JOBNAMEREDUX}-Update.zip ${JOBNAMEREDUX}-Update.zip.MD5
${DESTINATION}/updates/staging/
+date; rsync -arzq --rsh=ssh ${targetZip} ${targetZip}.MD5
${DESTINATION}/updates/staging/