view move-if-change @ 5644:0df3cedee9ac

select-coercion-alist, not select-conversion-alist, select.el 2012-03-02 Aidan Kehoe <kehoea@parhasard.net> * select.el (select-coerce): Whoops, selection-coercion-alist, not selection-conversion-alist, thank you Philip Aston in 4F4A2CBC.1060709@mail.com .
author Aidan Kehoe <kehoea@parhasard.net>
date Fri, 02 Mar 2012 18:26:14 +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