view move-if-change @ 98657:3780bdf31ec4

* tool-bar.el (tool-bar-setup): Variable deleted. (tool-bar-setup): Set it up unconditionally. * faces.el (x-create-frame-with-faces): Don't call tool-bar-setup. * frame.el: Remove unneeded function declaration. * progmodes/grep.el (grep-mode-tool-bar-map): Check if tool-bar-map has been initialized before setting it up. * progmodes/compile.el (compilation-mode-tool-bar-map): Check if tool-bar-map has been initialized before setting it up.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 12 Oct 2008 13:45:29 +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