subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1848829 - /subversion/site/tools/haxx-url-to-message-id.sh
Date Thu, 13 Dec 2018 08:32:12 GMT
Author: julianfoad
Date: Thu Dec 13 08:32:12 2018
New Revision: 1848829

URL: http://svn.apache.org/viewvc?rev=1848829&view=rev
Log:
* tools/haxx-url-to-message-id.sh: Don't grep symlinks: one was failing, others are redundant.

Modified:
    subversion/site/tools/haxx-url-to-message-id.sh

Modified: subversion/site/tools/haxx-url-to-message-id.sh
URL: http://svn.apache.org/viewvc/subversion/site/tools/haxx-url-to-message-id.sh?rev=1848829&r1=1848828&r2=1848829&view=diff
==============================================================================
--- subversion/site/tools/haxx-url-to-message-id.sh (original)
+++ subversion/site/tools/haxx-url-to-message-id.sh Thu Dec 13 08:32:12 2018
@@ -15,6 +15,6 @@
 set -e
 echo "# Message-ids of archived emails that are referenced by a svn.haxx.se URL."
 echo "# Generated by $0 on `date +%Y-%m-%d`"
-grep -hERo 'https?://svn.haxx.se/[a-z0-9-]*/archive-[0-9-]*/[0-9]*\.shtml' "$@" | sort |
uniq | while read -r u; do
-  printf '%s\t' "$u"; curl -sSf -L -- "$u" | perl -lne 's/<!-- id="(.*)" -->/\1/ and
print s/_at_/@/gr and ++$printed; END { exit +($printed ? 0 : 1) }'
+grep -hEro 'https?://svn.haxx.se/[a-z0-9-]*/archive-[0-9-]*/[0-9]*\.shtml' "$@" | sort |
uniq | while read -r u; do
+  printf '%s\t' "$u"; curl --connect-timeout 1 -sSf -L -- "$u" | perl -lne 's/<!-- id="(.*)"
-->/\1/ and print s/_at_/@/gr and ++$printed; END { exit +($printed ? 0 : 1) }'
 done



Mime
View raw message