view move-if-change @ 467:13d500863631

Tailorization Import of the upstream sources from Repository: /afs/informatik.uni-tuebingen.de/local/web/xemacs/cvs Kind: cvs Module: XEmacs/xemacs Revision: 2001-04-12 18:25:01 by michaels
author tailor@h615406.serverkompetenz.net
date Thu, 12 Apr 2001 18:25:01 +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