Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=e459ac0754c75aa22667568cb62c6ee1da4f960c
commit e459ac0754c75aa22667568cb62c6ee1da4f960c Author: VMiklos <[EMAIL PROTECTED]> Date: Sun Sep 30 21:23:09 2007 +0200 fwcpan: added manpage diff --git a/fwcpan b/fwcpan index f1fdedb..143e7cd 100644 --- a/fwcpan +++ b/fwcpan @@ -57,10 +57,14 @@ get_deps() echo ")" } -if [ "$1" = "-h" -o "$1" = "--help" ]; then - echo "usage: $0 [-i|--install] [module]" - echo "usage: $0 -h|--help" - exit 0 +if [ "$1" == "-h" -o "$1" == "--help" ]; then + man fwcpan + exit $? +fi + +if [ "$1" == "-v" -o "$1" == "--version" ]; then + pacman-g2 -Q pacman-tools + exit $? fi if [ "$1" = "-i" -o "$1" = "--install" ]; then diff --git a/fwcpan.txt b/fwcpan.txt new file mode 100644 index 0000000..423f3bc --- /dev/null +++ b/fwcpan.txt @@ -0,0 +1,34 @@ += fwcpan(1) + +== NAME + +fwcpan - generate FrugalBuild script for a Perl CPAN module + +== SYNOPSIS + +fwcpan [options] [<module>] + +== OPTIONS + +--help:: + Display this manpage. + +-i, --install:: + Build and install the package after creating the FrugalBuild. + +--version:: + Display the package version. + +The optional <module> parameter is needed unless you use -v or -i. + +Example: + +---- +$ fwcpan io::zlib +---- + +or + +---- +# fwcpan -i io::string +---- _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
