fix hash_source for OS X. In OS X the md5sum command is called md5
authorL. Aaron Kaplan <aaron@lo-res.org>
Sat, 13 Nov 2010 17:59:29 +0000 (18:59 +0100)
committerL. Aaron Kaplan <aaron@lo-res.org>
Sat, 13 Nov 2010 17:59:29 +0000 (18:59 +0100)
make/hash_source.sh

index 65d5507..eb0c9af 100755 (executable)
@@ -1,2 +1,7 @@
 #!/bin/sh
-cat `find . -name *. [ch]`|md5sum
+md5cmd=md5sum
+os=$(uname)
+if [ "xDarwin" = "x$os" ] ; then
+  md5cmd=md5
+fi
+cat `find . -name *. [ch]`| $md5cmd