view move-if-change @ 62112:e1aa7e2ac9e5

(c-macro-preprocessor): Use locate-file to look for the preprocessor with exec-suffixes. If not found in standard places, look in exec-path. Remove most of the tests that used system-type.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 06 May 2005 12:30:35 +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