commit 1582528ba5d8e077c53b3cc5b43b7c56c9a51abe
parent 2fc52333582ac889c40fbd3b55acd02bf7f32db5
Author: Joris Vink <joris@coders.se>
Date: Thu, 27 Jun 2013 00:32:16 +0200
Merge remote-tracking branch 'origin/master'
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/example/build.sh b/modules/example/build.sh
@@ -44,7 +44,7 @@ ${CC} ${CFLAGS} tools/inject.c -o tools/inject
create_and_empty_dir ${SOURCE_DIR}/${MEDIA_DIR}
create_and_empty_dir .objs
-for file in `find ${MEDIA_DIR} -type f`; do
+for file in `find ${MEDIA_DIR} -type f \( ! -name \*.swp \)`; do
echo "Injecting $file";
base=`basename $file`;
./tools/inject $file $base > ${SOURCE_DIR}/${MEDIA_DIR}/${base}.c;
@@ -54,7 +54,7 @@ for file in `find ${MEDIA_DIR} -type f`; do
fi
done
-for src in `find ${SOURCE_DIR} -type f`; do
+for src in `find ${SOURCE_DIR} -type f -name \*.c`; do
base=`basename $src`;
${CC} ${CFLAGS} -fPIC -c $src -o .objs/${base}.o
if [ $? -ne 0 ]; then