From 9b7580777f7e353f6d7775051868cdb6cb287bfc Mon Sep 17 00:00:00 2001 From: bernd Date: Thu, 4 Aug 2011 13:52:51 +0200 Subject: [PATCH] Check all .gitignore files in simulat0r --- simulat0r/bin/update-bridge-files.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/simulat0r/bin/update-bridge-files.sh b/simulat0r/bin/update-bridge-files.sh index 3d801a2..8b40a7b 100755 --- a/simulat0r/bin/update-bridge-files.sh +++ b/simulat0r/bin/update-bridge-files.sh @@ -45,10 +45,13 @@ do fi done -if cmp firmware/.gitignore simulat0r/firmware/.gitignore; -then - echo OK .gitignore is the same in firmware/ and simulat0r/firmware -else - echo WARNING: .gitignore mismatch in firmware/ and simulat0r/firmware - diff -y firmware/.gitignore simulat0r/firmware/.gitignore -fi + +for i in `find firmware -type f -name .gitignore`; do + if cmp $i simulat0r/$i + then + echo OK $i and simulat0r/$i are the same + else + echo WARNING: $i mismatches simulat0r/$i + diff -y $i simulat0r/$i + fi +done