view move-if-change @ 75426:7b38b48667a7

(ls-lisp-use-localized-time-format): New defcustom. (ls-lisp-format-time-list): Doc fix. Mention ls-lisp-use-localized-time-format. (ls-lisp-format-time): Use ls-lisp-format-time-list if ls-lisp-use-localized-time-format is non-nil, even if a valid locale is defined.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 27 Jan 2007 13:21:19 +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