head	1.2;
access;
symbols
	FINAL_1_1:1.1
	GAMMA_1_1:1.1
	BETA_1_1:1.1.0.2
	BP_BETA_1_1:1.1
	FINAL_1_0:1.1
	EPSILON_1_0:1.1
	GAMMA_1_0:1.1
	BETA_1_0:1.1;
locks; strict;
comment	@# @;


1.2
date	95.12.30.18.42.15;	author peter;	state dead;
branches;
next	1.1;

1.1
date	93.07.23.02.36.24;	author jkh;	state Exp;
branches;
next	;


desc
@@


1.2
log
@recording cvs-1.6 file death
@
text
@#!/bin/sh
# usage: sh catman
# put the section numbers here:
SECTIONS="1 2 3 4 5 6 7 8"
MANDIR=/usr/share/man

formatman()
{
	echo "	"$1 "->" $*
	(cd cat$section; rm -f $*)
	nroff -man < man$section/$1 > cat$section/$1
	catfile=$1; shift
	while [ $# -gt 0 ]
	do
		ln cat$section/$catfile cat$section/$1
		shift
	done
}

cd $MANDIR
for section in $SECTIONS
do
  echo formatting section $section ...
  
  IFS=" "
  allfiles=`ls -i1 man$section | sort | awk '{if (inode ~ $1) printf "/" $2;
		 else printf " " $2; inode = $1 } END {printf "\n"}'` 
  for files in $allfiles
  do
    IFS="/"
    tfiles=`echo $files`
    IFS=" "
    formatman $tfiles
  done
done
exit 0
@


1.1
log
@Added Christoph Robitschko's catman
@
text
@@
