view move-if-change @ 865:987c2a685f39

[xemacs-hg @ 2002-06-04 16:45:42 by michaels] 2002-06-04 Jerry James <james@eecs.ku.edu> * find-paths.el (paths-find-architecture-directory): Search in `system-configuration'/`base', not `base'`system-configuration'.
author michaels
date Tue, 04 Jun 2002 16:45:54 +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