view move-if-change @ 84623:5c69a4b491f6

(browse-url-url-encode-chars): New function. URL-encode some chars in a string. (browse-url-encode-url): Rewrite using the previous function. (browse-url-file-url): Use `browse-url-url-encode-chars'. (browse-url-elinks-sentinel): Fix typo. (browse-url-new-window-flag): Doc change.
author Michaël Cadilhac <michael.cadilhac@lrde.org>
date Mon, 17 Sep 2007 15:59:41 +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