ports/graphics/renderpark/scripts/cpp2c.sh
Maho Nakata 3585add922 graphics/renderpark System for physically based photo-realistic image synthesis
PR: 41105
Submitted by: Igor Pokrovsky <tiamat@telegraph.spb.ru>
Reviewed by: knu (mentor)
2003-02-03 10:03:40 +00:00

10 lines
227 B
Bash

#!/bin/sh
# Convert C++ style sources to C style
# $FreeBSD$
FILES=`${FIND} ${WRKSRC} -name '*.c'`;
for i in ${FILES}; do
if [ -n "`${GREP} -e '//' $i`" ]; then
${REINPLACE_CMD} -e 's?//\(.*\)?/*\1 */?' $i;
fi;
done;