From de110ea5be432feb3db300ec6c26783a93e74ba6 Mon Sep 17 00:00:00 2001 From: Rainer Mueller Date: Sat, 6 Aug 2011 21:42:17 +0200 Subject: [PATCH] Fix update-bridge-files.sh for BSD find BSD find outputs a trailing slash when given on the command line, GNU find does not. This can lead to path like firmware//lcd/image.c which would fail with the used dirname and sed combination. --- simulat0r/bin/update-bridge-files.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simulat0r/bin/update-bridge-files.sh b/simulat0r/bin/update-bridge-files.sh index 441bc53..d85524e 100755 --- a/simulat0r/bin/update-bridge-files.sh +++ b/simulat0r/bin/update-bridge-files.sh @@ -13,7 +13,7 @@ exit fi echo "Updating directories" -for i in `find firmware/ -type d ` +for i in `find firmware -type d ` do if test -d simulat0r/$i then verbmsg "OK Directory already exists: $i" @@ -22,7 +22,7 @@ fi done echo "Updating bridge files for C source" -for i in `find firmware/ \! -path firmware/lcd/allfonts.h \! -path firmware/l0dable/usetable.h -type f -iname \*.[ch]` +for i in `find firmware \! -path firmware/lcd/allfonts.h \! -path firmware/l0dable/usetable.h -type f -iname \*.[ch]` do if test -f simulat0r/$i; then @@ -34,7 +34,7 @@ do done echo "Updating bridge files for Makefiles" -for i in `find firmware/ -type f -iname Makefile` +for i in `find firmware -type f -iname Makefile` do if test -f simulat0r/$i; then