Commit 2dbd4827 authored by Jari Aalto's avatar Jari Aalto

debian/pod2man.mk: Remove sed, use --release option

Signed-off-by: 's avatarJari Aalto <jari.aalto@cante.net>
parent 4de8d2b4
......@@ -11,8 +11,10 @@ corkscrew (2.0-10) unstable; urgency=low
* debian/patches
- (30): New. Support spaces in authentication data. Patch thanks to
Filip Zyzniewski (LP: #962921).
* debian/pod2man.mk
- Remove sed, use --release option.
-- Jari Aalto <jari.aalto@cante.net> Thu, 23 May 2013 21:40:29 +0300
-- Jari Aalto <jari.aalto@cante.net> Thu, 23 May 2013 21:42:51 +0300
corkscrew (2.0-9) unstable; urgency=low
......
......@@ -2,69 +2,64 @@
#
# Copyright information
#
# Copyright (C) 2008-2012 Jari Aalto
# Copyright (C) 2008-2013 Jari Aalto
#
# License
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Description
#
# Convert *.pod files to manual pages. Add this to Makefile:
# Convert *.pod files to manual pages. Write this to 'install'
# target:
#
# PACKAGE = package
#
# man:
# make -f pod2man.mk PACKAGE=$(PACKAGE) makeman
#
# build: man
# install: build $(MANPAGE)
ifneq (,)
This makefile requires GNU Make.
endif
# This variable *must* be set when called
# This variable *must* be set when calling
PACKAGE ?= package
RELEASE ?= $(PACKAGE)
# Optional variables to set
MANSECT ?= 1
PODCENTER ?= User Commands
PODDATE ?= $$(date "+%Y-%m-%d")
PODCENTER ?= $$(date "+%Y-%m-%d")
# Directories
MANSRC ?=
MANDEST ?= $(MANSRC)
MANSRC =
MANDEST = $(MANSRC)
MANPOD ?= $(MANSRC)$(PACKAGE).$(MANSECT).pod
MANPAGE ?= $(MANDEST)$(PACKAGE).$(MANSECT)
MANPOD = $(MANSRC)$(PACKAGE).$(MANSECT).pod
MANPAGE = $(MANDEST)$(PACKAGE).$(MANSECT)
POD2MAN ?= pod2man
POD2MAN_FLAGS ?= --utf8
POD2MAN = pod2man
POD2MAN_FLAGS = --utf8
makeman: $(MANPAGE)
$(MANPAGE): $(MANPOD)
# make target - create manual page from a *.pod page
podchecker $(MANPOD)
LC_ALL= LANG=C $(POD2MAN) $(POD2MAN_FLAGS) \
LC_ALL=C $(POD2MAN) $(POD2MAN_FLAGS) \
--center="$(PODCENTER)" \
--date="$(PODDATE)" \
--name="$(PACKAGE)" \
--section="$(MANSECT)" \
--release="$(RELEASE)" \
$(MANPOD) \
| sed 's,[Pp]erl v[0-9.]\+,$(PACKAGE),' \
> $(MANPAGE) && \
> $(MANPAGE) && \
rm -f pod*.tmp
# End of of Makefile part
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment