view move-if-change @ 4582:00ed9903a988

Fix make check after my last change. 2009-01-18 Aidan Kehoe <kehoea@parhasard.net> * automated/lisp-tests.el: (char-table-with-string): That was remiss of me, I should have checked before commiting that last changed. Fixed, the char tables are now actually printed.
author Aidan Kehoe <kehoea@parhasard.net>
date Sun, 18 Jan 2009 12:56:51 +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