Revision: 55779
          http://sourceforge.net/p/brlcad/code/55779
Author:   brlcad
Date:     2013-06-14 14:41:17 +0000 (Fri, 14 Jun 2013)
Log Message:
-----------
make the extraction of release notes more robust and faster.  was taking 
several minutes and was using a poor newline choice.  this pattern seems to 
match much better (and instantly)

Modified Paths:
--------------
    brlcad/trunk/HACKING

Modified: brlcad/trunk/HACKING
===================================================================
--- brlcad/trunk/HACKING        2013-06-14 13:35:13 UTC (rev 55778)
+++ brlcad/trunk/HACKING        2013-06-14 14:41:17 UTC (rev 55779)
@@ -1237,7 +1237,7 @@
     scp brlcad-$MAJOR.$MINOR.$PATCH* 
"$SFUSERNAME,[email protected]:/home/frs/project/b/br/brlcad/BRL-CAD\ 
Source/$MAJOR.$MINOR.$PATCH/."
 
     # Extract and upload the release notes:
-    cat ../NEWS | tr '\n' '$' | perl -pi -e 
's/.*(\$--*\$---[[:space:]]*[0-9-]*[[:space:]]*Release[[:space:]]*$MAJOR.$MINOR.$PATCH[[:space:]]*---\$-*\$.*?)\$---.*/\1/g'
 | tr '$' '\n' > README-$MAJOR-$MINOR-$PATCH.txt
+    cat ../NEWS | tr '\n' '@' | perl -pi -e 
"s/.*?(@---[[:space:]@-]*[0-9]{4}-[0-9]{2}-[0-9]{2}[[:space:]]*Release[[:space:]]*${MAJOR}\.${MINOR}\.${PATCH}[[:space:]@-]*.*?)@---.*/\1/"
 | tr '@' '\n' > README-${MAJOR}-${MINOR}-${PATCH}.txt
     echo "Release notes for $MAJOR.$MINOR.$PATCH" && echo "==="
     cat README-$MAJOR-$MINOR-$PATCH.txt && echo "==="
     scp README-$MAJOR-$MINOR-$PATCH.txt 
"$SFUSERNAME,[email protected]:/home/frs/project/b/br/brlcad/BRL-CAD\ 
Source/$MAJOR.$MINOR.$PATCH/."

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to