#!/bin/csh -f

#ifndef _BLURB_
#define _BLURB_
#/*
#                           CODA FILE SYSTEM
#                             Release 2.0
#                      School of Computer Science
#                      Carnegie Mellon University
#                          Copyright 1987-94
#
#Coda  may  be  used  under license outside Carnegie Mellon University.
#Contact  the  Coda  Project   Coordinator   for   licensing   details.
#Unlicensed use or distribution of this code is illegal.
#*/
#
#
#static char *rcsid = "$Header: blurb-ansify,v 3.2.2.1 95/10/11 10:03:00 raiff Exp $";
#endif /*_BLURB_*/


# Argument processing

set numfiles = $#argv

if ($numfiles == 0) then
    echo "Usage: blurb-ansify [files]"
    echo "       Filters each of [files] to convert non-ansi blurbs"
    echo "	 Saves old versions of files in filename.oldblurb"
endif

foreach file ($argv)
    if (! -r $file) then
	echo Could not find file $file, not ansifying
    else
	sed 's/endif \_BLURB\_/endif \/\*\_BLURB\_\*\//' < $file > $file.ansi
	mv $file $file.oldblurb
	mv $file.ansi $file
    endif
end
    
