view move-if-change @ 45213:162082d00c8f

(ibuffer-mode-map): Add :enable guards for `ibuffer-filter-disable', `ibuffer-pop-filter', `ibuffer-or-filter', `ibuffer-negate-filter', `ibuffer-decompose-filter', `ibuffer-save-filters', `ibuffer-switch-to-saved-filters', `ibuffer-delete-saved-filters', `ibuffer-save-filter-groups', `ibuffer-switch-to-saved-filter-groups', `ibuffer-delete-saved-filter-groups'.
author Colin Walters <walters@gnu.org>
date Thu, 09 May 2002 21:30:21 +0000
parents 354e0c45cedf
children 14a97ab281d5
line wrap: on
line source

#!/bin/sh
if
test -r $2
then
if
cmp $1 $2 > /dev/null
then
echo $2 is unchanged
rm -f $1
else
mv -f $1 $2
fi
else
mv -f $1 $2
fi