view move-if-change @ 491:b3bbdc4058d7

[xemacs-hg @ 2001-04-30 09:26:20 by ben] fix mswindows printer support Implement headers and footers. Implement calling Print dialog box (#### but it doesn't quite work yet).
author ben
date Mon, 30 Apr 2001 09:26:20 +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