You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/12/16 22:11:34 UTC
svn commit: r1551359 - /cordova/site/www/_posts/linkify-bugs.sh
Author: agrieve
Date: Mon Dec 16 21:11:34 2013
New Revision: 1551359
URL: http://svn.apache.org/r1551359
Log:
Add a script to linkify CB-#### found within blog posts
Added:
cordova/site/www/_posts/linkify-bugs.sh (with props)
Added: cordova/site/www/_posts/linkify-bugs.sh
URL: http://svn.apache.org/viewvc/cordova/site/www/_posts/linkify-bugs.sh?rev=1551359&view=auto
==============================================================================
--- cordova/site/www/_posts/linkify-bugs.sh (added)
+++ cordova/site/www/_posts/linkify-bugs.sh Mon Dec 16 21:11:34 2013
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+cd $(dirname "$0")
+for f in *.md; do
+ echo Processing: $f
+ perl -pi -e 's/ (CB-[0-9]+)/ [$1](https:\/\/issues.apache.org\/jira\/browse\/$1)/g' "$f"
+ perl -pi -e 's/ \[(CB-[0-9]+)\] / [$1](https:\/\/issues.apache.org\/jira\/browse\/$1) /g' "$f"
+done
Propchange: cordova/site/www/_posts/linkify-bugs.sh
------------------------------------------------------------------------------
svn:executable = *