view move-if-change @ 40877:d544e48d6a3e

Add Copyright notice. (prefix): Remove. (infodir): Change value to "../info". (VPATH): New variable. (MAKE): Don't define. (texmacrodir): Don't define. (texinputdir): Append the existing value of TEXINPUTS. ($(infodir)/elisp): Instead of just "elisp". Reformat the command to be compatible with man/Makefile.in, and to put the output into ../info. (installall): Target removed.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 10 Nov 2001 13:57:42 +0000
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