summaryrefslogtreecommitdiff
path: root/graphics/renderpark/scripts/cpp2c.sh
blob: f422828243f9a85b0b6c342195eee44f3a1376fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/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;