view move-if-change @ 5609:3152c2c21461

Correct and clarify docstring, #'load-time-value lisp/ChangeLog addition: 2011-12-09 Aidan Kehoe <kehoea@parhasard.net> * cl-macs.el (load-time-value): Clarify the docstring here, thanks for pointing out its inaccuracy Julian Bradfield.
author Aidan Kehoe <kehoea@parhasard.net>
date Fri, 09 Dec 2011 08:38:07 +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