Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 0884aede6d204c5e1f52f95d3374d542 > files > 32

man-1.6f-28.fc13.src.rpm

#!/bin/sh

if [ -x /usr/bin/cmp ] ; then
    /usr/bin/cmp -s "$1" "$2"
else
    sha1=`sha1sum -b "$1" | cut -d' ' -f 1`
    sha2=`sha1sum -b "$2" | cut -d' ' -f 1`
    [ -f "$1" -a -f "$2" -a "$sha1" = "$sha2" ]
fi