~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to debian/docbook2man-sgmlspl/docbook2man-spec_makelinks

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-lqeaexh03y4xge1k
Tags: 8.4~0cvs20090328-1
* Package current trunk, which will become 8.4 in time. Packaging branched
  from 8.3 packaging trunk. Move from cdbs' tarball.mk to bzr-builddeb.
* Drop obsolete patches:
  - 03-gettext-domains.patch: Adopted upstream.
  - 04-psql-passwordprompt.patch: Obsoleted by new psql -w option.
  - 05-check-rlimits-nofile.patch: Adopted upstream.
* Update remaining patches for new upstream version.
* Add debian/docbook2man-sgmlspl/docbook2man-spec{.pl,_makelinks}: Current
  Debian version in docbook-utils is way too old and broken (see #275715,
  #271611), locally ship the current ones from upstream, in order to build
  manpages.
* debian/rules: Build documentation and manpage tarballs if not present (as
  with building from CVS). Add necessary build dependencies docbook-utils,
  openjade, and docbook.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl
 
2
 
 
3
while(<STDIN>)
 
4
{
 
5
        chomp;
 
6
        ($main, $link) = split(/\t/);
 
7
        
 
8
        $n = $main;
 
9
        $n =~ s/^.*\.(\d).*$/$1/;
 
10
        
 
11
        open(LINK, ">$link");
 
12
        print LINK ".so man$n/$main\n";
 
13
        close(LINK);
 
14
}
 
15