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

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Tue Jun 1 15:33:45 EDT 2010


Author: nickboldt
Date: 2010-06-01 15:33:44 -0400 (Tue, 01 Jun 2010)
New Revision: 22463

Modified:
   trunk/build/publish.sh
Log:
use for loop instead of if

Modified: trunk/build/publish.sh
===================================================================
--- trunk/build/publish.sh	2010-06-01 19:27:26 UTC (rev 22462)
+++ trunk/build/publish.sh	2010-06-01 19:33:44 UTC (rev 22463)
@@ -16,9 +16,9 @@
 fi
 
 # if zips exist produced & renamed by ant script, copy them too
-if [[ -f ${WORKSPACE}/*/*/site/target/*Update*.zip ]]; then
-	rsync -aq ${WORKSPACE}/*/*/site/target/*Update*.zip ${WORKSPACE}/site/${JOB_NAME}/
-fi
+for z in $(find ${WORKSPACE} -maxdepth 5 -mindepth 4 -name "*Update*.zip"); do 
+	rsync -aq $z ${WORKSPACE}/site/${JOB_NAME}/
+done
 
 # publish to download.jboss.org
 if [[ $DESTINATION == "" ]]; then DESTINATION="tools at filemgmt.jboss.org:/downloads_htdocs/tools"; fi



More information about the jbosstools-commits mailing list