view move-if-change @ 1626:5cec7ab01719

[xemacs-hg @ 2003-08-16 14:18:36 by michaels] 2003-08-12 Mike Sperber <mike@xemacs.org> * bytecode.c (GCPRO_STACK): Added. (execute_optimized_program): Use GCPRO_STACK, fixing a space leak: Formerly, the byte-code engine would always hold on to the entire stack memory area, including the stuff above the top. Now, we adjust the GCPRO record via GCPRO_STACK just before a GC may occur.
author michaels
date Sat, 16 Aug 2003 14:18:38 +0000
parents 376386a54a3c
children
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