build: only print the md5 hash in hash_source.sh
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 10 Jul 2013 16:00:52 +0000 (18:00 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 10 Jul 2013 16:06:21 +0000 (18:06 +0200)
Some md5sum programs print in the format
  md5_hash -

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

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