File: make_man

package info (click to toggle)
ariba 2.14.6%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 22,484 kB
  • sloc: python: 14,240; cpp: 733; xml: 101; sh: 57; makefile: 13; perl: 9
file content (12 lines) | stat: -rwxr-xr-x 543 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl

my $v = `grep -Po "(?<=version=')([0-9.]+)" setup.py`;

while(<>) {
	chomp;
	my ($name, $desc) = split(/\s{2,}/);
	`echo '#!/bin/sh\ncat <<HERE\n' > ariba-$name;PYTHONPATH=. scripts/ariba $name --help 2>&1 |  sed 's/usage/Usage/g' | egrep -v '^ARIBA:' >> ariba-$name; echo "HERE\n" >> ariba-$name; chmod +x ariba-$name`;
	`help2man -I debian/extra-man-info.txt -n '$desc' --version-string='$v' -N ./ariba-$name > debian/man/ariba-$name.1`;
	`sed -i 's/ariba $name/ariba_$name/' debian/man/ariba-$name.1`;
	`rm ariba-$name`;
}