[pca] Wikify pca -l

Michael Schmarck michael.schmarck at habmalnefrage.de
Sun Dec 7 09:26:19 CET 2008


Hi.

I document the to be installed patches in a local
Mediawiki installation. To do that, I pipe the output
of "pca -l" thru what you can find below. It'll replace
patch numbers and patch revs with links to sunsolve
and also indent the output one space (so that mediawiki
interpretes the text as "code" and prints it in a
mono space font).

Here comes:

perl -p -e
's,(\d{6}-\d\d),[http://sunsolve.sun.com/search/document.do?assetkey=$1 $1]<ref
name="Sun Solaris Patch
$1">[http://sunsolve.sun.com/search/document.do?assetkey=$1
http://sunsolve.sun.com/search/document.do?assetkey=$1 → Sun Solaris Patch
$1]</ref>,g ;
s,(\d{6})\s,[http://sunsolve.sun.com/search/document.do?assetkey=$1 $1]<ref
name="Sun Solaris Patch
$1">[http://sunsolve.sun.com/search/document.do?assetkey=$1
http://sunsolve.sun.com/search/document.do?assetkey=$1 → Sun Solaris Patch
$1]</ref>,g ; s,^, ,'                                                          
         

Feel free to use or ignore it :) Just wanted to share.

Cheers,
Michael




More information about the pca mailing list