view move-if-change @ 5790:dcf9067f26bb

Add font-lock-regexp-grouping-{backslash, construct} from GNU Emacs. 2014-01-27 Michael Sperber <mike@xemacs.org> * font-lock.el (font-lock-regexp-grouping-backslash, font-lock-regexp-grouping-construct): Add these, as in GNU Emacs.
author Mike Sperber <sperber@deinprogramm.de>
date Mon, 27 Jan 2014 17:52:33 +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