view move-if-change @ 57133:fd1a6df8927e

Delete superfluous empty lines. (battery-linux-proc-acpi): Attempt to gather information from all battery subdirectories regardless of their file name. (battery-linux-proc-apm): Replace all occurrences of battery-hex-to-int-2 with string-to-int (base 16). (battery-hex-to-int-2, battery-hex-to-int): Delete functions. (battery-hex-map): Delete variable.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 18 Sep 2004 11:48:03 +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