#!/bin/sh # Extracts the documentation block from the top of each macro # specified on the command line and writes it to a file with the same # name in directory $SUBDIR (defined below). # # This Bourne shell script calls the Perl script getmacdoc.pl. # David Edwards Wed Jul 18 18:50:55 2001 SUBDIR="doc" if [ ! -d $SUBDIR ]; then mkdir $SUBDIR fi for file in $* do getmacdoc.pl $file > $SUBDIR/$file done