File: webtidy

package info (click to toggle)
libhtml-tidy-perl 1.60-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 472 kB
  • sloc: perl: 1,289; sh: 23; makefile: 7
file content (26 lines) | stat: -rwxr-xr-x 453 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

run(){
    perl -Iblib/arch -Iblib/lib ./bin/webtidy --help
}

case "$1" in
    --help)
        run | sed '1 d'
        ;;
    --version)
        run | head -1
        ;;
    --help2man)
        chmod +x $0
        help2man -n "show errors in an (X)HTML document" -o $0.1 -N $0 | sed 's/DESCRIPTION/OPTIONS/'
        ;;
    --man)
        sh $0 --help2man
        man $0.1
        ;;
    *)
        echo "huh?"
        exit 1
        ;;
esac