view move-if-change @ 5520:05c1ad4f7a7b

Expand the documentation of #'eq-hash, mention the CL PRINT-OBJECT protocol 2011-06-19 Aidan Kehoe <kehoea@parhasard.net> * elhash.c (Feq_hash): Document that this returns, for non-immediate objects, a value that is unique among currently-reachable objects.
author Aidan Kehoe <kehoea@parhasard.net>
date Sun, 19 Jun 2011 16:37:17 +0100
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