~ubuntu-branches/ubuntu/vivid/fcrackzip/vivid

« back to all changes in this revision

Viewing changes to debian/pod2man.mk

  • Committer: Bazaar Package Importer
  • Author(s): Jari Aalto
  • Date: 2010-01-05 20:28:03 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20100105202803-qannpbsx15hh775f
Tags: 1.0-1
* New maintainer (ITA; Closes: #555125)
  - New version (Closes: #531657).
  - Pw is not initialized and read from stdin (Closes: #528219).
  - Segmentation Fault when init-password string is
    longer than MAX_PW (40)(Closes: #500750).
  - Move to format: 3.0 (quilt).
* debian/clean
  - New file.
* debian/compat
  - Update to 7.
* debian/control
  - (Build-Depends): update to debhelper 7, remove old version
    from autotools-dev.
  - (Homepage): New field.
  - (Standards-Version): update to 3.8.3.
* debian/copyright
  - Update layout.
* debian/debian-{autotools,compile,vars}.mk
  - New files.
* debian/fcrackzipinfo.1
  - Delete, convert to POD format.
* debian/fcrackzipinfo.1.pod
  - New file.
* debian/fcrackzip.{examples,manpages}
  - Move content from rules for dh(1).
* debian/patches
  - (10): New; fix hyphens in manual page.
  - (20): New; handle special files (Closes: #430387).
* debian/pod2man.mk
  - New file.
* debian/rules
  - Update to dh(1).
* debian/watch
  - New file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# pod2man.mk -- Makefile portion to convert *.pod files to manual pages
 
2
#
 
3
#   Copyright information
 
4
#
 
5
#       Copyright (C) 2008-2009 Jari Aalto
 
6
#
 
7
#   License
 
8
#
 
9
#       This program is free software; you can redistribute it and/or modify
 
10
#       it under the terms of the GNU General Public License as published by
 
11
#       the Free Software Foundation; either version 2 of the License, or
 
12
#       (at your option) any later version.
 
13
#
 
14
#       This program is distributed in the hope that it will be useful,
 
15
#       but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
17
#       GNU General Public License for more details.
 
18
#
 
19
#       You should have received a copy of the GNU General Public License
 
20
#       along with this program. If not, see <http://www.gnu.org/licenses/>.
 
21
#
 
22
#   Description
 
23
#
 
24
#       Convert *.pod files to manual pages. Write this to 'install'
 
25
#       target:
 
26
#
 
27
#       install: build $(MANPAGE)
 
28
 
 
29
ifneq (,)
 
30
    This makefile requires GNU Make.
 
31
endif
 
32
 
 
33
# This variable *must* be set when calling
 
34
PACKAGE         ?= package
 
35
 
 
36
# Optional variables to set
 
37
MANSECT         ?= 1
 
38
PODCENTER       ?= $$(date "+%Y-%m-%d")
 
39
 
 
40
# Directories
 
41
MANSRC          =
 
42
MANDEST         = $(MANSRC)
 
43
 
 
44
MANPOD          = $(MANSRC)$(PACKAGE).$(MANSECT).pod
 
45
MANPAGE         = $(MANDEST)$(PACKAGE).$(MANSECT)
 
46
 
 
47
POD2MAN         = pod2man
 
48
POD2MAN_FLAGS   = --utf8
 
49
 
 
50
makeman: $(MANPAGE)
 
51
 
 
52
$(MANPAGE): $(MANPOD)
 
53
        # make target - create manual page from a *.pod page
 
54
        podchecker $(MANPOD)
 
55
        LC_ALL= LANG=C $(POD2MAN) $(POD2MAN_FLAGS) \
 
56
                --center="$(PODCENTER)" \
 
57
                --name="$(PACKAGE)" \
 
58
                --section="$(MANSECT)" \
 
59
                $(MANPOD) \
 
60
        | sed 's,[Pp]erl v[0-9.]\+,$(PACKAGE),' \
 
61
          > $(MANPAGE) && \
 
62
        rm -f pod*.tmp
 
63
 
 
64
# End of of Makefile part