r5898 - /scripts/qa/versioncheck-html
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Thu Jul 19 14:43:20 UTC 2007
Author: dmn
Date: Thu Jul 19 14:43:20 2007
New Revision: 5898
URL: http://svn.debian.org/wsvn/?sc=1&rev=5898
Log:
ALso handle watch URLs that are split to directory+regex
Modified:
scripts/qa/versioncheck-html
Modified: scripts/qa/versioncheck-html
URL: http://svn.debian.org/wsvn/scripts/qa/versioncheck-html?rev=5898&op=diff
==============================================================================
--- scripts/qa/versioncheck-html (original)
+++ scripts/qa/versioncheck-html Thu Jul 19 14:43:20 2007
@@ -71,7 +71,7 @@
UPCUR=$(echo $RE | perl -pe 's/^(?:\d:)?(.+?)(?:-[^-]+)?$/\1/')
if [ -s $DIR/watch ]; then
if egrep -qi '^(ftp|http).+cpan' $DIR/watch; then
- VER_REGEX=$(egrep '^http|^ftp' $DIR/watch | perl -pe 's{.+/}{}; s/\s.*$//')
+ VER_REGEX=$(egrep '^http|^ftp' $DIR/watch | perl -pe 's{.+/\s*}{}; s/\s.*$//')
if [ -n "$VER_REGEX" ]; then
UPNEW=$(perl -ne "if(/${VER_REGEX}/){ \$last_ver = \$1 if \$1 > \$last_ver; } END { print \$last_ver } " $DIR/cpan)
else
More information about the Pkg-perl-cvs-commits
mailing list