head	2.1;
access;
symbols
	fourth_edition:2.1;
locks
	grog:2.1; strict;
comment	@# @;


2.1
date	97.12.07.08.34.53;	author grog;	state Exp;
branches;
next	1.3;

1.3
date	97.11.29.03.26.20;	author grog;	state Exp;
branches;
next	1.2;

1.2
date	97.10.04.10.11.56;	author grog;	state Exp;
branches;
next	1.1;

1.1
date	97.08.30.05.17.54;	author grog;	state Exp;
branches;
next	;


desc
@Make the body of the packages appendix
@


2.1
log
@Base second edition
@
text
@# Create the body of the 'packages' appendix
# Build a new index.mm.  If an old one exists and has the same contents,
# don't replace it (otherwise we'll rebuild the book for nothing).
FILE=packages_body.mm
if [ ! -f $FILE ]; then 		# no $FILE file yet,
  touch $FILE
fi
sort -t\| < INDEX | awk -F\| '{print $1 "#T{\n" $7 "\nT}#T{\n" $4 "\nT}" }' >$FILE.new
if [ -f $FILE ]; then	# already have one, is it the same?
  cmp $FILE $FILE.new 2> /dev/null  >/dev/null
  if [ $? -ne 0 ]; then		# changed
    echo +++ $FILE changed - need to repeat format
    mv $FILE.new $FILE
  else
    rm $FILE.new
  fi
else
  mv $FILE.new $FILE
fi

  
@


1.3
log
@First complete release version of second edition
@
text
@@


1.2
log
@Checkin 4 October
@
text
@d8 1
a8 1
sort -t\| < /usr/ports/INDEX | awk -F\| '{print $1 "#T{\n" $7 "\nT}#T{\n" $4 "\nT}" }' >$FILE.new
@


1.1
log
@Initial revision
@
text
@d8 1
a8 1
sort -t\| < /usr/src/ports/INDEX | awk -F\| '{print $1 "#T{\n" $7 "\nT}#T{\n" $4 "\nT}" }' >$FILE.new
@
