File: generate-manpages.sh

package info (click to toggle)
euca2ools 2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,832 kB
  • sloc: python: 7,807; makefile: 40; sh: 20
file content (15 lines) | stat: -rwxr-xr-x 353 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e

mkdir -p man
rm -rf man/*
export PYTHONPATH=".:$PYTHONPATH"

# eucacommand-based
for exe in bin/euca-*; do
    help2man "$exe" -N -o "man/$(basename $exe).1" -n "$($exe --help | sed '/^$/,$d')"
done

# roboto-based
for exe in bin/euare-*; do
    help2man "$exe" -N -o "man/$(basename $exe).1" -n "$($exe --help | sed '1,2d;/^$/,$d')"
done