view move-if-change @ 3820:6ef4efc5cfe0

[xemacs-hg @ 2007-02-08 21:26:03 by adrian] xemacs-21.5-clean: Update Steve L. Baur's address on his request -------------------- ChangeLog entries follow: -------------------- modules/ChangeLog addition: 2007-02-08 Adrian Aichner <adrian@xemacs.org> * postgresql/postgresql.c: Update Steve L. Baur's address on his request. * postgresql/postgresql.h: Ditto.
author adrian
date Thu, 08 Feb 2007 21:26:09 +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