Making indent. Done for Issue 26
[netsniff-ng.git] / scripts / gensums
blob1646e85d4d41369ff25366d7e56d2562a0bd01bc
1 #!/bin/sh
4 # netsniff-ng Project
8 # XXX: Use diff for comparison of sums
11 files=`find $1 -type f | egrep -v "*~|/\.svn/|*.o$"`
13 for file in $files
15 sha1sum=`sha1sum $file | sed 's/\(.*\)\s.*/\1/'`
16 sha256sum=`sha256sum $file | sed 's/\(.*\)\s.*/\1/'`
17 md5sum=`md5sum $file | sed 's/\(.*\)\s.*/\1/'`
18 fsize=`stat -c %s $file`
19 ftime=`stat -c %z $file`
21 echo "$file, $fsize Byte, Timestamp $ftime"
22 echo " md5: $md5sum"
23 echo " sha1: $sha1sum"
24 echo " sha256: $sha256sum"
25 done