view move-if-change @ 5725:1af0602ff9a2

Fix the module build by completing removal of need_modules_common, forgotten in the previous patch. See xemacs-patches message <CAHCOHQmVdDxM1u_z3cMdj0tOsfVSTQ3BTZ4K_kxsDsz9V9qReQ@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Mon, 04 Mar 2013 10:24:55 -0700
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