Author: danielsh
Date: Fri Dec  7 14:47:55 2018
New Revision: 1848405

URL: http://svn.apache.org/viewvc?rev=1848405&view=rev
Log:
* tools/haxx-url-to-message-id.sh: Avoid Linuxisms:
  - Backslash in double quotes
  - The 'T' sed command
  - Flags to date(1)

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=1848405&r1=1848404&r2=1848405&view=diff
==============================================================================
--- subversion/site/tools/haxx-url-to-message-id.sh (original)
+++ subversion/site/tools/haxx-url-to-message-id.sh Fri Dec  7 14:47:55 2018
@@ -13,5 +13,5 @@
 # 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
+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 -sL -- "$u" | 
perl -lne 's/<!-- id="(.*)" -->/\1/ and print s/_at_/@/gr'; done


Reply via email to