view move-if-change @ 26640:f95236e53857

First "working" version: - uncomment-region doesn't work for some unknown reason - comment-multi-line allows the use of multi line comments - comment-extra-lines allows yet another style choice - comment-add allows to default to `;;' - comment-region on a comment calls uncomment-region - C-u C-u comment-region aligns comment end markers - C-u C-u C-u comment-region puts the comment inside a rectangle
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 28 Nov 1999 18:51:06 +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