File: tweak_manpage_dashes

package info (click to toggle)
rsync 2.6.9-2
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 3,716 kB
  • ctags: 2,572
  • sloc: ansic: 26,566; sh: 4,331; perl: 1,320; makefile: 203; python: 83; awk: 59
file content (8 lines) | stat: -rwxr-xr-x 259 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#!/usr/bin/perl -i -p
s{(--\w[-\w]+)}{ $x = $1; $x =~ s/-/\\-/g; $x }eg;
s/(?<!\\)-(['"\d*])/\\-$1/g;
s#(['"(= /,])-(?!-)#$1\\-#g;
s/(\\fB)-/$1\\-/g;
s/(\[\w)-(\w\])/$1\\-$2/g;
s{(\\f\(CW.*?\\fP)}{ $x = $1; $x =~ s/(?<!\\)-/\\-/g; $x }eg;
s/(\.\w+)-/$1\\-/g;