view move-if-change @ 782:616e133a0ce6

[xemacs-hg @ 2002-03-18 22:22:15 by adrian] [ACR21.4] [PATCH] xemacs-21.5: Fix typo in prompt for customize-save-variable <vgbtblbl.fsf@mailto.t-online.de>
author adrian
date Mon, 18 Mar 2002 22:22:15 +0000
parents 376386a54a3c
children
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