view move-if-change @ 109654:d349244d7b08

Can't include menu.h in window.c for X targets. * nsterm.h (x_set_menu_bar_lines): Declare. * window.c: Don't include menu.h, it depends on lots of other .h-files.
author Jan D <jan.h.d@swipnet.se>
date Fri, 06 Aug 2010 13:04:29 +0200
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