view move-if-change @ 99316:18d103d62e5e

* programs.texi (Program Modes): Link to Program Indent node. (Left Margin Paren): Explain consequences of changing open-paren-in-column-0-is-defun-start more concisely. (Which Function, Program Indent, Info Lookup): Minor edits. (Basic Indent): If region is active, TAB indents the region. (Multi-line Indent): If region is active, TAB indents the region. Note that indent-region is useful when Transient Mark mode is off. (Matching): The delimiter at the cursor is highlighted---the character changes color. (Symbol Completion): Link to Completion node.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 01 Nov 2008 23:39:25 +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