Author: nickboldt
Date: 2011-01-10 12:20:25 -0500 (Mon, 10 Jan 2011)
New Revision: 28049
Modified:
trunk/build/publish.sh
Log:
trim up to suffix / when getting component name (avoid nesting)
Modified: trunk/build/publish.sh
===================================================================
--- trunk/build/publish.sh 2011-01-10 17:02:56 UTC (rev 28048)
+++ trunk/build/publish.sh 2011-01-10 17:20:25 UTC (rev 28049)
@@ -159,9 +159,10 @@
mv $z ${z}.MD5 ${STAGINGDIR}/components
done
- # unpack component source zips
+ # unpack component source zips like jbosstools-pi4soa-3.1_trunk-Sources-SNAPSHOT.zip or
jbosstools-3.2_trunk.component--ws-Sources-SNAPSHOT.zip
for z in $(find ${WORKSPACE}/sources/aggregate/site/zips -name
"*Sources*.zip"); do
- zn=${z%*-Sources*.zip}; zn=${zn#*--};
+ zn=${z%*-Sources*.zip}; zn=${zn#*--}; zn=${zn##*/}; zn=${zn#jbosstools-};
+ # zn=${zn%_trunk}; zn=${zn%_stable_branch};
mkdir -p ${STAGINGDIR}/all/sources/${zn}/
unzip -qq -o -d ${STAGINGDIR}/all/sources/${zn}/ $z
done