view move-if-change @ 107831:92451fdcc718

Remove C_SWITCH_SYSTEM_TEMACS. * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove. (malloc, realloc, free): Use emacs, not temacs for conditional definition. * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove. (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 11 Apr 2010 14:43:28 -0700
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