mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 21:50:32 -04:00
PR: 41105 Submitted by: Igor Pokrovsky <tiamat@telegraph.spb.ru> Reviewed by: knu (mentor)
10 lines
227 B
Bash
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;
|