X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=bin%2Fminstall;h=130025829ba727210ab8eef55b15b8412eeb9879;hb=e1e0307c911f962cfb529c6e16b67ba66f08f6fe;hp=8ee96089fa618d7d98866f5bb59420294501eb6b;hpb=d7f1cb5b5a134b63227d5746a2dd1f05597c5c2f;p=mesa.git diff --git a/bin/minstall b/bin/minstall index 8ee96089fa6..130025829ba 100755 --- a/bin/minstall +++ b/bin/minstall @@ -66,8 +66,11 @@ if [ $# -ge 2 ] ; then elif [ -f "$FILE" ] ; then #echo "$FILE" is a regular file - $RM "$DEST/`basename $FILE`" - cp "$FILE" "$DEST" + # Only copy if the files differ + if ! cmp -s $FILE $DEST/`basename $FILE`; then + $RM "$DEST/`basename $FILE`" + cp "$FILE" "$DEST" + fi if [ $MODE ] ; then FILE=`basename "$FILE"` chmod $MODE "$DEST/$FILE"