#!/bin/csh -f
#
# fix the result of makedepend so it still works with cpp
# ie, comment out the # DO NOT DELETE THIS LINE

onintr cleanup

cat > fmd.pat <<SCRIPT
/^# DO/i\
/*
/^# DO/s|\$| */|
SCRIPT

sed -f fmd.pat $1 > fmd.temp

mv fmd.temp $1

cleanup:
rm -f fmd.temp fmd.pat
