Re: pgsql: Ship documentation without intermediate tarballs Documentation

Lists: pgsql-committerspgsql-hackers
From: petere(at)postgresql(dot)org (Peter Eisentraut)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Ship documentation without intermediate tarballs Documentation
Date: 2009-08-09 22:47:59
Message-ID: 20090809224759.ADDEA75331E@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

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.

Modified Files:
--------------
pgsql:
GNUmakefile.in (r1.51 -> r1.52)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/GNUmakefile.in?r1=1.51&r2=1.52)
pgsql/doc:
Makefile (r1.38 -> r1.39)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/Makefile?r1=1.38&r2=1.39)
pgsql/doc/src:
Makefile (r1.36 -> r1.37)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/Makefile?r1=1.36&r2=1.37)
pgsql/doc/src/sgml:
Makefile (r1.121 -> r1.122)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/Makefile?r1=1.121&r2=1.122)
docguide.sgml (r1.77 -> r1.78)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/docguide.sgml?r1=1.77&r2=1.78)
stylesheet.dsl (r1.34 -> r1.35)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/stylesheet.dsl?r1=1.34&r2=1.35)
stylesheet.xsl (r1.3 -> r1.4)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/stylesheet.xsl?r1=1.3&r2=1.4)
pgsql/src:
Makefile.global.in (r1.256 -> r1.257)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/Makefile.global.in?r1=1.256&r2=1.257)


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Ship documentation without intermediate tarballs Documentation
Date: 2009-08-10 06:26:33
Message-ID: 17942.1249885593@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

petere(at)postgresql(dot)org (Peter Eisentraut) writes:
> Ship documentation without intermediate tarballs

After this patch, "make clean" in the doc/src/sgml directory no longer
does anything useful. Even "make distclean" fails to remove all the
cruft left behind by a build. This needs to be rethought a bit,
else we are going to be shipping tarballs containing junk.

regards, tom lane


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Ship documentation without intermediate tarballs Documentation
Date: 2009-08-10 07:24:31
Message-ID: 200908101024.32078.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On Monday 10 August 2009 09:26:33 Tom Lane wrote:
> petere(at)postgresql(dot)org (Peter Eisentraut) writes:
> > Ship documentation without intermediate tarballs
>
> After this patch, "make clean" in the doc/src/sgml directory no longer
> does anything useful. Even "make distclean" fails to remove all the
> cruft left behind by a build. This needs to be rethought a bit,
> else we are going to be shipping tarballs containing junk.

make maintainer-clean is supposed to remove "everything". make distclean is
supposed to remove things that are not supposed to be in the distribution. If
you can identifiy something that should not be in the distribution and is not
removed by distclean, let me know.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Ship documentation without intermediate tarballs Documentation
Date: 2009-08-10 15:59:51
Message-ID: 3747.1249919991@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> On Monday 10 August 2009 09:26:33 Tom Lane wrote:
>> After this patch, "make clean" in the doc/src/sgml directory no longer
>> does anything useful. Even "make distclean" fails to remove all the
>> cruft left behind by a build. This needs to be rethought a bit,
>> else we are going to be shipping tarballs containing junk.

> make maintainer-clean is supposed to remove "everything". make distclean is
> supposed to remove things that are not supposed to be in the distribution. If
> you can identifiy something that should not be in the distribution and is not
> removed by distclean, let me know.

After doing "make" then "make distclean" in doc/src/sgml, I see the
following undesirable files left behind:

-rw-rw-r-- 1 tgl tgl 58 Aug 10 11:51 version.sgml
-rw-rw-r-- 1 tgl tgl 38548 Aug 10 11:51 features-unsupported.sgml
-rw-rw-r-- 1 tgl tgl 42014 Aug 10 11:51 features-supported.sgml
-rw-rw-r-- 1 tgl tgl 345398 Aug 10 11:52 HTML.index
-rw-rw-r-- 1 tgl tgl 298859 Aug 10 11:52 bookindex.sgml
-rw-rw-r-- 1 tgl tgl 0 Aug 10 11:53 html-stamp

I would argue that both "make clean" and "make distclean" should remove
these.

Also, we seem to need .cvsignore entries for the html/ and manN/
subdirectories. IMO the policy for .cvsignore is that anything
intentionally left behind by make distclean is to be cvsignore'd.

regards, tom lane


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Peter Eisentraut <petere(at)postgresql(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pgsql: Ship documentation without intermediate tarballs Documentation
Date: 2009-08-10 20:03:12
Message-ID: 20090810200312.GA7359@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers 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.


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Subject: Re: Re: pgsql: Ship documentation without intermediate tarballs Documentation
Date: 2009-08-11 21:52:40
Message-ID: 200908120052.40960.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

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.


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: pgsql: Ship documentation without intermediate tarballs Documentation
Date: 2009-08-11 22:02:45
Message-ID: 20090811220245.GH16362@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

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 Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: [COMMITTERS] pgsql: Ship documentation without intermediate tarballs Documentation
Date: 2009-08-11 22:22:34
Message-ID: 200908120122.35493.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

On Monday 10 August 2009 18:59:51 Tom Lane wrote:
> After doing "make" then "make distclean" in doc/src/sgml, I see the
> following undesirable files left behind:
>
> -rw-rw-r-- 1 tgl tgl 58 Aug 10 11:51 version.sgml
> -rw-rw-r-- 1 tgl tgl 38548 Aug 10 11:51 features-unsupported.sgml
> -rw-rw-r-- 1 tgl tgl 42014 Aug 10 11:51 features-supported.sgml
> -rw-rw-r-- 1 tgl tgl 345398 Aug 10 11:52 HTML.index
> -rw-rw-r-- 1 tgl tgl 298859 Aug 10 11:52 bookindex.sgml
> -rw-rw-r-- 1 tgl tgl 0 Aug 10 11:53 html-stamp
>
> I would argue that both "make clean" and "make distclean" should remove
> these.

OK, I fixed that, but html-stamp has to stay to keep the dependencies
satisfied. (Well, there are alternatives. We could make the whole thing
depend on html/index.html or whatever.)

> Also, we seem to need .cvsignore entries for the html/ and manN/
> subdirectories. IMO the policy for .cvsignore is that anything
> intentionally left behind by make distclean is to be cvsignore'd.

Fixed.