view move-if-change @ 1248:9f175fcece64

[xemacs-hg @ 2003-02-02 07:31:59 by youngs] 2003-02-02 Steve Youngs <youngs@xemacs.org> * about.el (xemacs-hackers): Add Jerry, Ville, Rendhalver (about-current-release-maintainers): Remove Martin, Jason. Add Jerry, Ville, Rendhalver. (about-other-current-hackers): Add Martin, Jason. (about-personal-info): Update me. Add Jerry, Ville, Rendhalver. (about-hacker-contribution): Update me, Martin, Steve T. Add Jerry, Ville, Rendhalver.
author youngs
date Sun, 02 Feb 2003 07:32:00 +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