14 OLDWIKISVN
=http
://msysgit.googlecode.com
/svn
/wiki
15 NEWWIKI
=http
://git.wiki.kernel.org
/index.php
23 last if ($_ eq "}}}\n" || $_ eq "}}}");
30 s/{{{(.*?)}}}/<code>$1<\/code>/g;
31 s/`(.*?)`/<code>$1<\/code>/g;
32 s/_(.*?)_/'\'''\''$1'\'''\''/g;
33 s/\*(.*?)\*/'\'''\'''\''$1'\'''\'''\''/g;
34 s/(?<=\s)!([A-Z])/$1/g;
35 s/(?<!\[)\[(?![a-z]*:)([^\] ]+) +([^\]]+)\]/[[MSysGit:$1|$2]]/g;
36 s/(?<!\[)\[(?![a-z]*:)([^\] ]+)\]/[[MSysGit:$1|$1]]/g;
38 s/(\s)_(\S[^_]*\S)_(\s)/$1<u>$2<\/u>$3/g;
41 print "\n[[Category:MSysGit]]\n";
46 curl
$OLDWIKISVN/"$1".wiki
51 sed -n 's/.*>\([^<]*\)\.wiki<.*/\1/p'
55 download
"$1" > /tmp
/"$1".old
&&
56 transform
< /tmp
/"$1".old
> /tmp
/"$1".wiki
&&
57 $START $NEWWIKI?title
="$NAMESPACE:$1&action=edit" &&
58 $EDITOR /tmp
/"$1".wiki
&&
59 rm /tmp
/"$1".old
/tmp
/"$1".wiki
62 test $# = 0 && set $
(download_index
)