Skip to content

Commit

Permalink
Add rule for pod2man to the makefile. Update the man page.
Browse files Browse the repository at this point in the history
  • Loading branch information
uroboro authored and kirb committed Jan 13, 2019
1 parent 0d4f657 commit c69bcbd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
include $(THEOS)/makefiles/common.mk
include $(THEOS_MAKE_PATH)/null.mk

after-stage::
dm.pl.1: dm.pl
$(ECHO_COMPILING)pod2man $^ $@$(ECHO_END)

after-stage:: dm.pl.1
$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/usr/bin $(THEOS_STAGING_DIR)/usr/share/man/man1$(ECHO_END)
$(ECHO_NOTHING)cp dm.pl $(THEOS_STAGING_DIR)/usr/bin/dm.pl$(ECHO_END)
$(ECHO_NOTHING)ln -s dm.pl $(THEOS_STAGING_DIR)/usr/bin/dm$(ECHO_END)
Expand Down
24 changes: 14 additions & 10 deletions dm.pl.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35)
.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35)
.\"
.\" Standard preamble:
.\" ========================================================================
Expand Down Expand Up @@ -54,16 +54,20 @@
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.if !\nF .nr F 0
.if \nF>0 \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
. if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{\
. nr % 0
. nr F 2
. if !\nF==2 \{\
. nr % 0
. nr F 2
. \}
. \}
.\}
.rr rF
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear. Run. Save yourself. No user-serviceable parts.
Expand Down Expand Up @@ -129,7 +133,7 @@
.\" ========================================================================
.\"
.IX Title "DM 1"
.TH DM 1 "2017-12-06" "perl v5.26.1" "User Contributed Perl Documentation"
.TH DM 1 "2019-01-13" "perl v5.28.1" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
Expand All @@ -149,7 +153,7 @@ This option exists solely for compatibility with dpkg-deb.
Specify the package compression type. Valid values are gzip (default), bzip2, lzma, xz and cat (no compression.)
.IP "\fB\-z<compress\-level>\fR" 8
.IX Item "-z<compress-level>"
Specify the package compression level. Valid values are between 0 and 9. Default is 9 for bzip2, 6 for others. 0 is identical to 1 when using bzip2. Refer to \fB\f(BIgzip\fB\|(1)\fR, \fB\f(BIbzip2\fB\|(1)\fR, \fB\f(BIxz\fB\|(1)\fR for explanations of what effect each compression level has.
Specify the package compression level. Valid values are between 0 and 9. Default is 9 for bzip2, 6 for others. 0 is identical to 1 when using bzip2 and gzip. Refer to \fB\fBgzip\fB\|(1)\fR, \fB\fBbzip2\fB\|(1)\fR, \fB\fBxz\fB\|(1)\fR for explanations of what effect each compression level has.
.IP "\fB\-\-help\fR, \fB\-?\fR" 8
.IX Item "--help, -?"
Print a brief help message and exit.
Expand Down

0 comments on commit c69bcbd

Please sign in to comment.