Set NO_SYMLINK_USER_XATTRS on linux. Fixes bug 7109.
[rsync/rsync.git] / tweak_manpage
CommitLineData
5e61bdb4 1#!/usr/bin/perl -i -p
39411fa8 2
810dc9fc
WD
3use strict;
4use warnings;
39411fa8
WD
5
6# We only need to use "\&'" or "\&." at the start of a line.
810dc9fc 7s/(?<=.)\\\&(['.])/$1/g;
39411fa8
WD
8
9# Some quotes turn into open/close quotes.
10s/'(.)'/\\(oq$1\\(cq/g;
11s/(^|[ (])"(?!( |$))/$1\\(lq/gm;
12s/(?<! )"([.,:;! )]|$)/\\(rq$1/gm;
13s/(\\\(lq[^(]*) "( |$)/$1 \\(rq$2/gm;
14s/(^| )" ([^(]*\\\(rq)/$1\\(lq $2/gm;
15
16# And some don't.
17s/^([. ])(.*)/ $1 . realquotes($2) /egm;
18s/(\\f(B|\(CW).*?\\fP)/ realquotes($1) /egs;
19
20s/^\\\&(\\\(oq)/$1/gm;
21
22sub realquotes
23{
24 my($txt) = @_;
25 $txt =~ s/\\\([lr]q/"/g;
26 $txt =~ s/\\\([oc]q/'/g;
27 $txt;
28}