view move-if-change @ 5056:6aba0daedb7c

Add #'constantly, as specified by ANSI Common Lisp. 2010-02-22 Aidan Kehoe <kehoea@parhasard.net> * cl-extra.el (constantly): Add this function, from ANSI Common Lisp, using the SBCL extension that extra arguments to it are passed back as multiple values in the constructed function. * cl-macs.el (constantly): In the compiler macro for #'constantly, construct a compiled-function object almost every time, at compile time when all arguments are constant, and at runtime when they vary.
author Aidan Kehoe <kehoea@parhasard.net>
date Mon, 22 Feb 2010 20:08: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