build: ignore builddata.c when hashing sources
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 22 Apr 2013 13:39:20 +0000 (15:39 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 23 Apr 2013 11:40:18 +0000 (13:40 +0200)
Not ignoring it is actually incorrect; it contains generated
meta-data about the sources.

If we don't ignore it then the hash will be different every time
for the same source tree.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
make/hash_source.sh

index 2942849..b60781e 100755 (executable)
@@ -4,4 +4,4 @@ os=$(uname)
 if [ "xDarwin" = "x$os" ] ; then
   md5cmd=md5
 fi
-cat `find . -name *.[ch]`| $md5cmd
+cat `find . -name *.[ch] | grep  -E '[/\\]?builddata.c$'`| $md5cmd