File:  [Research Unix] / researchv10dc / vol2 / index / tools / gethd.all
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

M=/usr/vol2/xindex/tools
for i in /usr/vol2/*
do
	j=`basename $i`
	if test -s $i/$j.ms
	then
	echo ms $j
	awk -f $M/headings.awk $i/$j.ms|sed -f $M/head.sed >$j.hd
	else
	if test -s $i/$j.tex
	then
	echo tex $j
	awk -f $M/theadings.awk $i/$j.tex|sed -f $M/head.sed >$j.hd
	else
	if test -s $i/$j.m
	then
	echo monk $j
	awk -f $M/mheadings.awk $i/$j.m|sed -f $M/head.sed >$j.hd
	else
	echo $i not found
	for j in $i/*.ms
	do
	k=`basename $i`
	l=`basename $j .ms`
	if test -s $j
	then
	echo running $j to $k
	awk -f $M/headings.awk $j|sed -f $M/head.sed >$k$l.hd
	fi
	done
	for j in $i/*.m
	do
	k=`basename $i`
	l=`basename $j .m`
	if test -s $j
	then
	echo running $j to $k
	awk -f $M/mheadings.awk $j|sed -f $M/head.sed >$k$l.hd
	fi
	done
	fi
	fi
	fi
done

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.