subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1848665 - /subversion/site/tools/haxx-url-to-message-id.sh
Date Tue, 11 Dec 2018 10:45:35 GMT
Author: danielsh
Date: Tue Dec 11 10:45:35 2018
New Revision: 1848665

URL: http://svn.apache.org/viewvc?rev=1848665&view=rev
Log:
[in site]

* tools/haxx-url-to-message-id.sh: Make sure the pipe exits non-zero if the transformation
failed.

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=1848665&r1=1848664&r2=1848665&view=diff
==============================================================================
--- subversion/site/tools/haxx-url-to-message-id.sh (original)
+++ subversion/site/tools/haxx-url-to-message-id.sh Tue Dec 11 10:45:35 2018
@@ -16,5 +16,5 @@ 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'
+  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) }'
 done



Mime
View raw message