view move-if-change @ 109094:3c35c7d2d79b

New functions that return window edges with absolute coords (bug#5721). * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges) (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
author Jan D <jan.h.d@swipnet.se>
date Thu, 01 Jul 2010 14:34:40 +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