[BACK]Return to move-if-change CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gmp

File: [local] / OpenXM_contrib / gmp / Attic / move-if-change (download)

Revision 1.1, Mon Jan 10 15:35:22 2000 UTC (24 years, 4 months ago) by maekawa
Branch: MAIN

Initial revision

#!/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