summaryrefslogtreecommitdiff
path: root/graphics/renderpark/scripts/cpp2c.sh
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2003-02-03 10:03:40 +0000
committerMaho Nakata <maho@FreeBSD.org>2003-02-03 10:03:40 +0000
commit3585add922daea7fed1f50e24bce0c680c60e8e9 (patch)
tree141e7d521f22f60304d68f06f5868fc08219591f /graphics/renderpark/scripts/cpp2c.sh
parentNew port: graphics/xrml Extensible scene graph library based on VRML'97 (diff)
graphics/renderpark System for physically based photo-realistic image synthesis
PR: 41105 Submitted by: Igor Pokrovsky <tiamat@telegraph.spb.ru> Reviewed by: knu (mentor)
Diffstat (limited to '')
-rw-r--r--graphics/renderpark/scripts/cpp2c.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/renderpark/scripts/cpp2c.sh b/graphics/renderpark/scripts/cpp2c.sh
new file mode 100644
index 000000000000..f422828243f9
--- /dev/null
+++ b/graphics/renderpark/scripts/cpp2c.sh
@@ -0,0 +1,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;