Re: pgsql: Ship documentation without intermediate tarballs Documentation - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: pgsql: Ship documentation without intermediate tarballs Documentation
Date
Msg-id 20090810200312.GA7359@alvh.no-ip.org
Whole thread Raw
Responses Re: Re: pgsql: Ship documentation without intermediate tarballs Documentation  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut wrote:
> Log Message:
> -----------
> Ship documentation without intermediate tarballs
> 
> Documentation files in HTML and man formats are now prepared for
> distribution using the distprep make target, like everything else.  They
> are placed in doc/src/sgml/html and manX and installed from there by
> make install, if present.  The business with the tarballs in the tarball
> is gone.

Hmm, I notice that this rule to install manpages is pretty slow:

for file in /pgsql/source/00head/doc/src/sgml/man1/*.1 /pgsql/source/00head/doc/src/sgml/man3/*.3
/pgsql/source/00head/doc/src/sgml/man7/*.7;do /bin/sh /pgsql/source/00head/config/install-sh -c -m 644 $file
/pgsql/install/00head/share/man/`echo$file | sed 's,^/pgsql/source/00head/doc/src/sgml/,,'` || exit; done
 

Can we use "basename" here instead of the `echo | sed` hack?

Hmm, oh, I see it's stripping everything except the last directory level.
I guess I'd go for doing a simple cp inside each man directory.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Patch for 8.5, transformationHook
Next
From: "Kevin Grittner"
Date:
Subject: Re: Patch for 8.5, transformationHook