5
0
mirror of git://git.proxmox.com/git/pve-access-control.git synced 2025-01-05 09:17:53 +03:00

create correct man page and .pod

This commit is contained in:
Dietmar Maurer 2011-10-20 08:38:54 +02:00
parent 5a941ebef2
commit 362fe4c650
3 changed files with 23 additions and 14 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
build build
*.deb *.deb
*.1.pod
*.1.gz

View File

@ -9,7 +9,8 @@ PREFIX=/usr
BINDIR=${PREFIX}/bin BINDIR=${PREFIX}/bin
SBINDIR=${PREFIX}/sbin SBINDIR=${PREFIX}/sbin
MANDIR=${PREFIX}/share/man MANDIR=${PREFIX}/share/man
DOCDIR=${PREFIX}/share/doc DOCDIR=${PREFIX}/share/doc/${PACKAGE}
PODDIR=${DOCDIR}/pod
MAN1DIR=${MANDIR}/man1/ MAN1DIR=${MANDIR}/man1/
export PERLDIR=${PREFIX}/share/perl5 export PERLDIR=${PREFIX}/share/perl5
@ -22,15 +23,24 @@ all: ${DEB}
dinstall: deb dinstall: deb
dpkg -i ${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 .PHONY: install
install: install: pveum.1.pod pveum.1.gz
install -d ${DESTDIR}${BINDIR} install -d ${DESTDIR}${BINDIR}
install -d ${DESTDIR}${SBINDIR} install -d ${DESTDIR}${SBINDIR}
install -m 0755 pveum ${DESTDIR}${SBINDIR} install -m 0755 pveum ${DESTDIR}${SBINDIR}
make -C PVE install make -C PVE install
perl -I. ./pveum verifyapi perl -I. ./pveum verifyapi
install -d ${DESTDIR}/usr/share/man/man1 install -d ${DESTDIR}/usr/share/man/man1
pod2man -n pveum -s 1 -r "proxmox 2.0" -c "Proxmox Documentation" <pveum | gzip -9 > ${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} .PHONY: deb ${DEB}
deb ${DEB}: deb ${DEB}:
@ -39,9 +49,9 @@ deb ${DEB}:
make DESTDIR=`pwd`/build install make DESTDIR=`pwd`/build install
install -d -m 0755 build/DEBIAN install -d -m 0755 build/DEBIAN
sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ <control.in >build/DEBIAN/control sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ <control.in >build/DEBIAN/control
install -D -m 0644 copyright build/${DOCDIR}/${PACKAGE}/copyright install -D -m 0644 copyright build/${DOCDIR}/copyright
install -m 0644 changelog.Debian build/${DOCDIR}/${PACKAGE}/ install -m 0644 changelog.Debian build/${DOCDIR}/
gzip -9 build/${DOCDIR}/${PACKAGE}/changelog.Debian gzip -9 build/${DOCDIR}/changelog.Debian
dpkg-deb --build build dpkg-deb --build build
mv build.deb ${DEB} mv build.deb ${DEB}
#rm -rf build #rm -rf build

13
pveum
View File

@ -78,12 +78,7 @@ my $cmddef = {
my $cmd = shift; my $cmd = shift;
if ($cmd && $cmd eq 'verifyapi') { PVE::CLIHandler::handle_cmd($cmddef, "pveum", $cmd, \@ARGV, $read_password, $0);
PVE::RESTHandler::validate_method_schemas();
exit 0;
}
PVE::CLIHandler::handle_cmd($cmddef, "pveum", $cmd, \@ARGV, $read_password);
exit 0; exit 0;
@ -95,8 +90,10 @@ pveum - PVE User Manager
=head1 SYNOPSIS =head1 SYNOPSIS
pveum <COMMAND> [OPTIONS] =include synopsis
=head1 DESCRIPTION =head1 DESCRIPTION
no description available No description available.
=include pve_copyright