view move-if-change @ 4701:684f0ed6cd4f

Behave better when #'variable-at-point gives nil, #'custom-variable-prompt. lisp/ChangeLog addition: 2009-09-27 Aidan Kehoe <kehoea@parhasard.net> * cus-edit.el (custom-variable-prompt): nil is a symbol, check that variable-at-point is non-nil before checking if it's a symbol when deciding on the prompt used in this function.
author Aidan Kehoe <kehoea@parhasard.net>
date Sun, 27 Sep 2009 20:37:44 +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