view move-if-change @ 74789:ecc3f98301f4

Remove `cl' requirement. Clean up whitespace. Replace '?\ ' by '?\s' throughout. (tutorial-warning-face): Inherit font-lock-warning-face. Move to `help' custom group. (tutorial--key-description): New function. (tutorial--display-changes): Remove redundant arg. Scan for all key sequences to avoid false matches. Cleanup. (tutorial--saved-dir): Save to a subdirectory in .emacs.d to reduce homedir pollution. (help-with-tutorial): Call tutorial--display-changes with no arg.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 21 Dec 2006 17:26:00 +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