view move-if-change @ 66055:99e68b20efb2

(mixal-mode-syntax-table): Add \n as end-comment. (mixal-operation-codes): Remove. (mixal-operation-codes-alist): Immediately initialize to full value. (mixal-add-operation-code): Remove. (mixal-describe-operation-code): Make the arg non-optional. Use the interactive spec instead. Use mixal-operation-codes-alist rather than mixal-operation-codes. (mixal-font-lock-keywords): Don't highlight comments here any more. (mixal-font-lock-syntactic-keywords): New var. (mixal-mode): Use it. Fix comment-start-skip.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 12 Oct 2005 17:28:52 +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