Author: nickboldt
Date: 2010-10-07 23:04:51 -0400 (Thu, 07 Oct 2010)
New Revision: 25619
Modified:
trunk/build/publish.sh
Log:
reformat input log into cleaner output
Modified: trunk/build/publish.sh
===================================================================
--- trunk/build/publish.sh 2010-10-08 02:58:27 UTC (rev 25618)
+++ trunk/build/publish.sh 2010-10-08 03:04:51 UTC (rev 25619)
@@ -63,8 +63,15 @@
# ...
# At revision 25538
rl=${STAGINGDIR}/logs/SVN_REVISION.txt
-sed -ne "/Updating \(http.\+\)\|Checking out \(http.\+\)\|At revision
\(\d\+\)/" ${bl} > ${rl}
+# convert input above to:
+#
http://anonsvn.jboss.org/repos/tdesigner/branches/7.1@1063
+#
http://anonsvn.jboss.org/repos/jbosstools/trunk/build@25503
+#
https://svn.jboss.org/repos/jbosstools/branches/jbosstools-3.2.0.Beta1@25538
+sed -ne "/Updating \(http.\+\)\|Checking out \(http.\+\)\|At revision \([0-9]\+\)/
p" ${bl} | \
+ sed -e "/At revision/ s/At revision /\@/" | sed -e N -e '/http/
s/\n//' | \
+ sed -e "/Checking out\|Updating/,+1 s/\(Checking out \|Updating
\)\(.\+\)/\2/g" > ${rl}
+
METAFILE="${BUILD_ID}-H${BUILD_NUMBER}.txt"
if [[ ${SVN_REVISION} ]]; then
METAFILE="${BUILD_ID}-H${BUILD_NUMBER}-r${SVN_REVISION}.txt"