view move-if-change @ 2644:0b4097b3552f

[xemacs-hg @ 2005-03-10 09:05:44 by michaels] Subject: Fix Makefile problem with PDUMP build 2004-10-25 Mike Alexander <mta@arbortext.com> * Makefile.in.in (obj_src): Fix a typo in the PDUMP section
author michaels
date Thu, 10 Mar 2005 09:05:52 +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