File: build-man-commands

package info (click to toggle)
npm 9.2.0~ds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 318,988 kB
  • sloc: javascript: 167,820; sh: 194; makefile: 52; perl: 11
file content (9 lines) | stat: -rwxr-xr-x 286 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl -000 -n

if(/^--.*title:\s+(.*?)\n.*?section:\s+(.*?)\n.*?description:\s+(.*?)\n.*?--\s*$/s){
    print "debian/transform-manpages $ARGV | marked-man --name '$1' --section '$2' > ";
    $s=$2;
    $ARGV=~s#.*/##;
    $ARGV=~s/\.md$//;
    print "man/man$s/$ARGV.$s\n"
}