#!/bin/csh -f
# print a one-line header summary suitable for a simple database of .fts or
# .fth files. The command line may list the files directly or be a list of
# directories to be probed. If no arguments are given, begin in the current
# directory.
#
# N.B. this relies heavily on fitslog
# 22 Jul 96  Begin
# 25 Jul 96  Allow for files and dirs

if ($#argv == 0) then
    set argv = "."
else
    if ($argv[1] == '-help') then
	set col = \:
	echo "$0$col [*.fts] [*.fth] [dirs]"
	exit 1
    endif
endif

find $argv -name '*.ft[sh]' -exec fitslog {} \;
