[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to change manual's section ?



On Thu, Jan 03, 2002 at 10:29:36PM +0100, Gergely Nagy wrote:
> The best thing would be to convince upstream to Do The Right
> Thing(tm). Meanwhile, you can add stuff like this to your install target
> in debian/rules:
> 
> DMANDIR=$(CURDIR)/debian/foobar/usr/share/man
> 
> install: build-stamp
> 	....
> 	${MAKE} install DESTDIR=$(CURDIR)/debian/foobar
> 	mv ${DMANDIR}/man1/thisbelongsto5.1 \
> 	   ${DMANDIR}/man5/thisbelongsto5.5
> 	...
> 
> Not the nicest, but works. If you have lots of manual pages to move,
> you might want to store them in a variable, and do a for loop or
> something.

Note that you should also change the .TH line at the start of the man
pages to refer to the new section.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

     Julian Gilbey, Dept of Maths,             Debian GNU/Linux Developer
      Queen Mary, Univ. of London         see http://people.debian.org/~jdg/
   http://www.maths.qmul.ac.uk/~jdg/           or http://www.debian.org/
        Visit http://www.thehungersite.com/ to help feed the hungry
                 Also: http://www.helpthehungry.org/



Reply to: