Permalink
Browse files

Add the man page generation script

  • Loading branch information...
1 parent 0f03abd commit ed80d8cdfedb20757f37bca6122ed3b519f1971b @gholms gholms committed Apr 13, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 generate-manpages.sh
View
@@ -0,0 +1,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

0 comments on commit ed80d8c

Please sign in to comment.