view move-if-change @ 75234:ad30c7a9a57a

(url-http-proxy): New variable. (url-http-create-request): Use it. Don't use `url-proxy-object'. (url-http): Treat `url' argument as resource to download, and dynamic variable `url-using-proxy' as proxy to use. Set `url-current-object' to actual URL, and `url-http-proxy' to proxy used. (url-http-handle-cookies): Assume that `url-current-object' does not point to the proxy used. (url-http-async-sentinel): Adapt error message.
author Magnus Henoch <mange@freemail.hu>
date Sun, 14 Jan 2007 23:17:08 +0000
parents 354e0c45cedf
children 14a97ab281d5
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