Author: julianfoad
Date: Fri Dec 7 12:29:56 2018
New Revision: 1848393
URL: http://svn.apache.org/viewvc?rev=1848393&view=rev
Log:
Add a tool for generating a svn.haxx.se archive URL to message-id mapping.
Update the '.message-ids.tsv' file so generated.
* tools/haxx-url-to-message-id.sh: New file.
* publish/.message-ids.tsv: Update.
Added:
subversion/site/tools/haxx-url-to-message-id.sh (with props)
Modified:
subversion/site/publish/.message-ids.tsv
Modified: subversion/site/publish/.message-ids.tsv
URL:
http://svn.apache.org/viewvc/subversion/site/publish/.message-ids.tsv?rev=1848393&r1=1848392&r2=1848393&view=diff
==============================================================================
--- subversion/site/publish/.message-ids.tsv (original)
+++ subversion/site/publish/.message-ids.tsv Fri Dec 7 12:29:56 2018
@@ -1,3 +1,5 @@
+# Message-ids of archived emails that are referenced by a svn.haxx.se URL.
+# Generated by tools/haxx-url-to-message-id.sh on 2018-12-07
https://svn.haxx.se/dev/archive-2003-01/1125.shtml
[email protected]
https://svn.haxx.se/dev/archive-2003-02/0068.shtml
[email protected]
https://svn.haxx.se/dev/archive-2003-10/0136.shtml
[email protected]
@@ -7,6 +9,7 @@ https://svn.haxx.se/dev/archive-2005-12/
https://svn.haxx.se/dev/archive-2005-12/0633.shtml
[email protected]
https://svn.haxx.se/dev/archive-2006-02/1156.shtml
[email protected]
https://svn.haxx.se/dev/archive-2006-02/1214.shtml
[email protected]
+https://svn.haxx.se/dev/archive-2006-09/0316.shtml
[email protected]
https://svn.haxx.se/dev/archive-2008-10/0213.shtml
[email protected]
https://svn.haxx.se/dev/archive-2010-01/0545.shtml
[email protected]
https://svn.haxx.se/dev/archive-2010-02/0418.shtml
[email protected]
@@ -42,3 +45,4 @@ https://svn.haxx.se/users/archive-2004-0
https://svn.haxx.se/users/archive-2004-07/1662.shtml
[email protected]
https://svn.haxx.se/users/archive-2012-03/0147.shtml
[email protected]
https://svn.haxx.se/users/archive-2012-09/0236.shtml
[email protected]
+http://svn.haxx.se/dev/archive-2010-08/0362.shtml
[email protected]
Added: 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=1848393&view=auto
==============================================================================
--- subversion/site/tools/haxx-url-to-message-id.sh (added)
+++ subversion/site/tools/haxx-url-to-message-id.sh Fri Dec 7 12:29:56 2018
@@ -0,0 +1,17 @@
+#!/bin/sh
+# Search the given files/directories for URLs of messages in the haxx.se
+# archives. Compile a list of <URL><TAB><MESSAGE-ID>.
+#
+# The output has been saved as 'publish/.message-ids.tsv'
+#
+# Message URLs are in this form:
+# https://svn.haxx.se/users/archive-2010-01/0001.shtml
+#
+# The message-id appears in the HTML source in this form:
+# <!-- id="69B68910-B4D0-428E-A4BB-FB7D6E87B24F_at_barrys-emacs.org" -->
+#
+# Note that '@' was transformed to '_at_', so we reverse that.
+#
+echo "# Message-ids of archived emails that are referenced by a svn.haxx.se
URL."
+echo "# Generated by $0 on `date --iso-8601=date`"
+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 -sL -- "$u" |
sed -n 's/<!-- id="\(.*\)" -->/\1/;T;s/_at_/@/g;p'; done
Propchange: subversion/site/tools/haxx-url-to-message-id.sh
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: subversion/site/tools/haxx-url-to-message-id.sh
------------------------------------------------------------------------------
svn:executable = *
Propchange: subversion/site/tools/haxx-url-to-message-id.sh
------------------------------------------------------------------------------
svn:mime-type = text/x-sh