From: Dietmar Maurer Date: Thu, 20 Oct 2011 06:38:54 +0000 (+0200) Subject: create correct man page and .pod X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=commitdiff_plain;h=362fe4c6507a00d1b8faaba6ac6a77232978191f create correct man page and .pod --- diff --git a/.gitignore b/.gitignore index 9775d5c..e1fc9d6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ build *.deb +*.1.pod +*.1.gz diff --git a/Makefile b/Makefile index 71c1306..7d85a43 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,8 @@ PREFIX=/usr BINDIR=${PREFIX}/bin SBINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/share/man -DOCDIR=${PREFIX}/share/doc +DOCDIR=${PREFIX}/share/doc/${PACKAGE} +PODDIR=${DOCDIR}/pod MAN1DIR=${MANDIR}/man1/ export PERLDIR=${PREFIX}/share/perl5 @@ -22,15 +23,24 @@ all: ${DEB} dinstall: deb dpkg -i ${DEB} +%.1.gz: %.1.pod + rm -f $@ + cat $<|pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation"|gzip -c9 >$@ + +pveum.1.pod: pveum + perl -I. ./pveum printmanpod >$@ + .PHONY: install -install: +install: pveum.1.pod pveum.1.gz install -d ${DESTDIR}${BINDIR} install -d ${DESTDIR}${SBINDIR} install -m 0755 pveum ${DESTDIR}${SBINDIR} make -C PVE install perl -I. ./pveum verifyapi install -d ${DESTDIR}/usr/share/man/man1 - pod2man -n pveum -s 1 -r "proxmox 2.0" -c "Proxmox Documentation" ${DESTDIR}/usr/share/man/man1/pveum.1.gz + install -d ${DESTDIR}${PODDIR} + install -m 0644 pveum.1.gz ${DESTDIR}/usr/share/man/man1/ + install -m 0644 pveum.1.pod ${DESTDIR}/${PODDIR} .PHONY: deb ${DEB} deb ${DEB}: @@ -39,9 +49,9 @@ deb ${DEB}: make DESTDIR=`pwd`/build install install -d -m 0755 build/DEBIAN sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ build/DEBIAN/control - install -D -m 0644 copyright build/${DOCDIR}/${PACKAGE}/copyright - install -m 0644 changelog.Debian build/${DOCDIR}/${PACKAGE}/ - gzip -9 build/${DOCDIR}/${PACKAGE}/changelog.Debian + install -D -m 0644 copyright build/${DOCDIR}/copyright + install -m 0644 changelog.Debian build/${DOCDIR}/ + gzip -9 build/${DOCDIR}/changelog.Debian dpkg-deb --build build mv build.deb ${DEB} #rm -rf build diff --git a/pveum b/pveum index 1a2f532..2c468d0 100755 --- a/pveum +++ b/pveum @@ -78,12 +78,7 @@ my $cmddef = { my $cmd = shift; -if ($cmd && $cmd eq 'verifyapi') { - PVE::RESTHandler::validate_method_schemas(); - exit 0; -} - -PVE::CLIHandler::handle_cmd($cmddef, "pveum", $cmd, \@ARGV, $read_password); +PVE::CLIHandler::handle_cmd($cmddef, "pveum", $cmd, \@ARGV, $read_password, $0); exit 0; @@ -95,8 +90,10 @@ pveum - PVE User Manager =head1 SYNOPSIS - pveum [OPTIONS] +=include synopsis =head1 DESCRIPTION -no description available +No description available. + +=include pve_copyright