view move-if-change @ 3013:ae52b2073aa3

[xemacs-hg @ 2005-10-23 16:56:43 by adrian] xemacs-21.5-clean: Sync packages mirrors list with website -------------------- ChangeLog entries follow: -------------------- lisp/ChangeLog addition: 2005-10-23 Adrian Aichner <adrian@xemacs.org> * package-get.el (package-get-download-sites): Sync packages mirrors list with website, based on Ville's work. * package-get.el (package-get-pre-release-download-sites): Sync with `package-get-download-sites'.
author adrian
date Sun, 23 Oct 2005 16:56:45 +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