view move-if-change @ 74278:f4da74a146c7

(erc-cmd-BANLIST, erc-cmd-MASSUNBAN): Simplify. (erc-prompt-for-channel-key, erc-ignore-reply-list, erc-send-post-hook, erc-active-buffer, erc-join-buffer, erc-frame-alist, erc-with-buffer, erc-modules, erc-display-message-highlight, erc-process-input-line, erc-cmd-HELP, erc-server-hooks, erc-echo-notice-in-user-buffers, erc-format-my-nick, erc-echo-notice-in-user-and-target-buffers, erc-echo-notice-in-first-user-buffer, erc-connection-established, erc-update-user-nick, erc-update-channel-member, erc-highlight-notice, erc-command-symbol, erc-add-query, erc-process-script-line, erc-determine-parameters, erc-client-info, erc-popup-input-buffer, erc-script-echo): Fix typos in docstrings. (erc-channel-user-op-p, erc-channel-user-voice-p, erc-startup-file-list, define-erc-module, erc-once-with-server-event, erc-once-with-server-event-global, erc-debug-irc-protocol, erc-log-irc-protocol, erc-cmd-LOAD, erc-update-user, erc-update-current-channel-member, erc-load-script, erc-mode-line-away-status-format): Doc fixes.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 28 Nov 2006 01:38:27 +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