view move-if-change @ 90283:9970a9645ad9

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-4 Creator: Stefan Monnier <monnier@iro.umontreal.ca> Merge tar-mode changes from the trunk. * tar-mode.el: Merge changes from the trunk: (tar-header-block-tokenize): Tighten regexp. (tar-summarize-buffer): Don't clear the modified-p bit if it wasn't cleared before. Obey default-enable-multibyte-characters. Use mapconcat. (tar-mode-map): Move initialization inside delcaration. (tar-alter-one-field): Don't hardcode point-min==1.
author Miles Bader <miles@gnu.org>
date Sat, 21 Jan 2006 06:45:38 +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