[pca] Wikify pca -l

Ron Halstead rdhalstead at gmail.com
Sun Dec 7 18:37:33 CET 2008


Michael,

Am I right to assume that the code is all one line?

__________________________
Ron Halstead
__________________________




Michael Schmarck wrote:
> 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
>
>
>
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rdhalstead.vcf
Type: text/x-vcard
Size: 368 bytes
Desc: not available
Url : https://lists.univie.ac.at/mailman/private/pca/attachments/20081207/a035628c/attachment.vcf 


More information about the pca mailing list