subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1848393 - in /subversion/site: publish/.message-ids.tsv tools/haxx-url-to-message-id.sh
Date Fri, 07 Dec 2018 12:29:56 GMT
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	20030116213052.314004c1.ttimo@idsoftware.com
 https://svn.haxx.se/dev/archive-2003-02/0068.shtml	87wuki4fpy.fsf@codematters.co.uk
 https://svn.haxx.se/dev/archive-2003-10/0136.shtml	200310031235.h93CZgIV064765@bigtex.jrv.org
@@ -7,6 +9,7 @@ https://svn.haxx.se/dev/archive-2005-12/
 https://svn.haxx.se/dev/archive-2005-12/0633.shtml	aea328ab0512151210s73154222g36ab671280bd55e3@mail.gmail.com
 https://svn.haxx.se/dev/archive-2006-02/1156.shtml	20060219230459.GA30803@sete.vztech
 https://svn.haxx.se/dev/archive-2006-02/1214.shtml	87hd6sg6k8.fsf@debian2.lan
+https://svn.haxx.se/dev/archive-2006-09/0316.shtml	877j08i5d7.fsf@morpheus.hq.vtech
 https://svn.haxx.se/dev/archive-2008-10/0213.shtml	48E68259.1060407@orcaware.com
 https://svn.haxx.se/dev/archive-2010-01/0545.shtml	b51ffb6f1001211456g60112fcfn5595fde3bedd2ff@mail.gmail.com
 https://svn.haxx.se/dev/archive-2010-02/0418.shtml	6cca3db31002171316n427d8c43ydf977baae4615f8d@mail.gmail.com
@@ -42,3 +45,4 @@ https://svn.haxx.se/users/archive-2004-0
 https://svn.haxx.se/users/archive-2004-07/1662.shtml	003c01c4763b$180511f0$800000c0@blazepoint.local
 https://svn.haxx.se/users/archive-2012-03/0147.shtml	20120308190221.GA4925@jack.stsp.name
 https://svn.haxx.se/users/archive-2012-09/0236.shtml	20120921085850.GG24524@ted.stsp.name
+http://svn.haxx.se/dev/archive-2010-08/0362.shtml	4C65756C.8070104@collab.net

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



Mime
View raw message