File: hash_source.sh

package info (click to toggle)
olsrd 0.6.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,904 kB
  • sloc: ansic: 53,886; cpp: 2,655; yacc: 1,188; makefile: 830; sh: 728; lisp: 360; pascal: 227; perl: 169
file content (7 lines) | stat: -rwxr-xr-x 120 bytes parent folder | download
1
2
3
4
5
6
7
#!/bin/sh
md5cmd=md5sum
os=$(uname)
if [ "xDarwin" = "x$os" ] ; then
  md5cmd=md5
fi
cat `find . -name *.[ch]`| $md5cmd