[jbosstools-commits] JBoss Tools SVN: r41737 - trunk/build/publish.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Jun 6 01:52:06 EDT 2012


Author: nickboldt
Date: 2012-06-06 01:52:06 -0400 (Wed, 06 Jun 2012)
New Revision: 41737

Modified:
   trunk/build/publish/publish.sh
Log:
another approach to collecting and publishing the new zip in WORKSPACE/sources/product/sources/target/

Modified: trunk/build/publish/publish.sh
===================================================================
--- trunk/build/publish/publish.sh	2012-06-06 05:47:20 UTC (rev 41736)
+++ trunk/build/publish/publish.sh	2012-06-06 05:52:06 UTC (rev 41737)
@@ -167,15 +167,15 @@
 	done
 fi
 
-productSourcesZip="$(find ${WORKSPACE}/sources/product/sources/target -type f -name "jbdevstudio-product-sources-*.zip")"
-if [[ $productSourcesZip ]]; then
-	# for now, but the JBDS sources into the /installer/ folder
-	for z in $productSourcesZip; do
-		mkdir -p ${STAGINGDIR}/installer/
-		rsync -aq $z ${STAGINGDIR}/installer/
-		for m in $(md5sum ${z}); do if [[ $m != ${z} ]]; then echo $m > ${z}.MD5; fi; done
-	done
-else
+foundSourcesZip=0
+# for now, but the JBDS sources into the /installer/ folder
+for z in $(find ${WORKSPACE}/sources/product/sources/target -type f -name "jbdevstudio-product-sources-*.zip"); do
+	for m in $(md5sum ${z}); do if [[ $m != ${z} ]]; then echo $m > ${z}.MD5; fi; done
+	mkdir -p ${STAGINGDIR}/installer/
+	rsync -aq $z ${z}.MD5 ${STAGINGDIR}/installer/
+	foundSourcesZip=1
+done
+if [[ $foundSourcesZip -eq 0 ]]; then
 	# create sources zip
 	pushd ${WORKSPACE}/sources
 	mkdir -p ${STAGINGDIR}/all



More information about the jbosstools-commits mailing list