#!/bin/sh
# Convert C++ style sources to C style
# $FreeBSD: ports/graphics/renderpark/scripts/cpp2c.sh,v 1.1 2003/02/03 10:03:40 maho Exp $

FILES=`${FIND} ${WRKSRC} -name '*.c'`;
for i in ${FILES}; do
    if [ -n "`${GREP} -e '//' $i`" ]; then
	${REINPLACE_CMD} -e 's?//\(.*\)?/*\1 */?' $i;
    fi;
done;
