view move-if-change @ 103149:a8c9fae0b19d

* hooks.texi (Standard Hooks): Add abbrev-expand-functions. Remove obsoleted pre-abbrev-expand-hook. * locals.texi (Standard Buffer-Local Variables): Consolidate table entries. * internals.texi (Window Internals): Synch field names to window.h. (Process Internals): Synch field names to process.h.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 04 May 2009 23:25: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