Re: [HACKERS] Re: pgsql: Ship documentation without intermediate tarballs Documentation

2009-08-11 Thread Peter Eisentraut
On Monday 10 August 2009 23:03:12 Alvaro Herrera wrote:
 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.

Yeah, that was really freakishly complicated.  Fixed now.

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


Re: [HACKERS] Re: pgsql: Ship documentation without intermediate tarballs Documentation

2009-08-11 Thread Alvaro Herrera
Peter Eisentraut wrote:
 On Monday 10 August 2009 23:03:12 Alvaro Herrera wrote:
  Hmm, I notice that this rule to install manpages is pretty slow:

 Yeah, that was really freakishly complicated.  Fixed now.

It is much better now, thanks.

-- 
Alvaro Herrerahttp://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


[HACKERS] Re: pgsql: Ship documentation without intermediate tarballs Documentation

2009-08-10 Thread Alvaro Herrera
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 Herrerahttp://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers