view move-if-change @ 107526:af52c11fa4bd

bug #5736: Allow X-resource menuBar to take on/off as documented. * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736). * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER. * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new. * xresources.texi (Table of Resources): Clarify toolBar number for Gtk+. * frames.texi (Menu Bars): menuBarLines => menuBar (bug#5736).
author Jan D. <jan.h.d@swipnet.se>
date Mon, 22 Mar 2010 08:26:56 +0100
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