head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


1.4
date	2000.03.09.23.52.30;	author pme;	state dead;
branches;
next	1.3;

1.3
date	99.12.22.16.44.18;	author pme;	state Exp;
branches;
next	1.2;

1.2
date	99.12.15.16.57.06;	author pme;	state Exp;
branches;
next	1.1;

1.1
date	99.12.14.03.08.22;	author bkoz;	state Exp;
branches;
next	;


desc
@@


1.4
log
@
2000-03-09  Phil Edwards  <pme@@sourceware.cygnus.com>

	* docs/gentop:  Remove entire directory, finally.
@
text
@#!/bin/sh

topfiles="index status download mail links how thanks"

# And if this isn't the height of laziness, I don't know what is...
if test $# -eq 0; then
    files="$topfiles"
else
    files="$*"
fi


# The simple "cat headchunk $i footchunk > ../$i.html" causes a really
# stupid problem:  the CVS dollar-ID-dollar is picked up from headchunk
# and placed in all of the resulting files.  Why is this a problem?
# Because then each of the rebuilt files is detected as changed (that
# one-line Id difference), even though 1) there is no change to the
# content, and 2) the Id gets rewritten during checkout anyhow!  So we
# jump through some extra hoops in order to avoid looking like anything
# has changed from CVS' viewpoint and performing a pointless checkin.
for i in $files; do
    I=`grep Id: ../${i}.html`
    cat headchunk.html $i footchunk.html | \
      sed "s=<.*Id:.*>=${I}=" > ../${i}.html
done
exit 0

# For the unaware:  the reason all the files are assembled in this manner
# is because we want the table structures containing the TOC ("navigation
# bar" if you're that kind of person) to actually be part of each page.
# Otherwise we'd have to use separate files (one for the TOC and one for the
# page contents), and bring them together using frames.  But if there is
# anything more deserving of the name PURE EVIL than frames, I have not heard
# its name.  (They are very unkind to lynx, for example, and look butt-ugly
# in many browsers besides.  They are a layout wart in a markup language.)

@


1.3
log
@
1999-12-22  Phil Edwards  <pme@@sourceware.cygnus.com>

	* docs/faq/index.html:  Update 'what works' for .7 snapshot,
	  clean up various links.
	* docs/faq/index.txt:  Regenerated.
	* docs/gentop/gentop:  Smarter regeneration script.
	* docs/gentop/{head,foot}chunk.html:  Updated with new
	  contributors link and mod date.
	* docs/gentop/index:  Snapshot relase date.
	* docs/gentop/thanks:  New contributors page added.
	* docs/{download,how,index,links,mail,status,thanks}.html:
	  Regenerated from gentop; thanks.html created.
@
text
@@


1.2
log
@
1999-12-15  Phil Edwards  <pme@@sourceware.cygnus.com>

	* docs/gentop/footchunk.html:  Updated, fixed CRLFs.
	* docs/gentop/gentop:  Ditto.
	* docs/gentop/headchunk.html:  Ditto.
	* docs/*.html:  Regenerated from gentop.
	* docs/*/howto.html:  Updated as test.
	* docs/faq/index.html:  Updated, fixed CRLFs.
	* docs/faq/index.txt:  Regenerated.
@
text
@d3 2
d6 5
d13 12
a24 4
topfiles="index status download mail links how"

for i in $topfiles; do
    cat headchunk.html $i footchunk.html > ../${i}.html
@


1.1
log
@
1999-12-13  Phil Edwards  <pedwards@@jaj.com>

        * docs/gentop/*:  New directory, containing bits for the homepages.
        * docs/*.html:  Regenerated from gentop.
        * docs/*/*.html:  Entries added and regenerated.
@
text
@d1 21
a21 21
#!/bin/sh

# And if this isn't the height of laziness, I don't know what is...


topfiles="index status download mail links how"

for i in $topfiles; do
    cat headchunk.html $i footchunk.html > ../${i}.html
done
exit 0

# For the unaware:  the reason all the files are assembled in this manner
# is because we want the table structures containing the TOC ("navigation
# bar" if you're that kind of person) to actually be part of each page.
# Otherwise we'd have to use separate files (one for the TOC and one for the
# page contents), and bring them together using frames.  But if there is
# anything more deserving of the name PURE EVIL than frames, I have not heard
# its name.  (They are very unkind to lynx, for example, and look butt-ugly
# in many browsers besides.  They are a layout wart in a markup language.)

@

