From 1412449fe7327f4ef4766ab92d083f0b59f6eb1b Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Wed, 26 Jun 2013 19:15:49 +0200 Subject: [PATCH] skip certain files when building --- modules/example/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/example/build.sh b/modules/example/build.sh index 89a9e37..a1626f0 100755 --- 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