view move-if-change @ 1832:5d8dcaecc32b

[xemacs-hg @ 2003-12-19 11:24:58 by youngs] 2003-12-15 Steve Youngs <sryoungs@bigpond.net.au> * package-get.el (package-get-list-packages-where): New. A function that allows searching for groups of packages. For example, find all packages that require the fsf-compat package.
author youngs
date Fri, 19 Dec 2003 11:24:59 +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