view move-if-change @ 5317:8aa511adfad6

#'delete-duplicates: don't attempt to compiler macroexpand with bad arguments 2010-12-29 Aidan Kehoe <kehoea@parhasard.net> * cl-macs.el (delete-duplicates): If the form has an incorrect number of arguments, don't attempt a compiler macroexpansion.
author Aidan Kehoe <kehoea@parhasard.net>
date Wed, 29 Dec 2010 23:56:57 +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