view move-if-change @ 5828:a3234d587dc2

Make :package-version in customize right. 2014-11-10 Michael Sperber <mike@xemacs.org> * custom.el (custom-add-package-version): The car of a :package-version is a symbol, not a string.
author Mike Sperber <sperber@deinprogramm.de>
date Mon, 10 Nov 2014 09:37:20 +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