view move-if-change @ 4377:751d82f59283

Fix the union build--check that built-in macro function values are nil, not zero. 2008-01-02 Aidan Kehoe <kehoea@parhasard.net> * doc.c (Fbuilt_in_symbol_file): Don't check is fun zero in the condition, check that it's not nil. Fixes the union build; thank you Stephen.
author Aidan Kehoe <kehoea@parhasard.net>
date Wed, 02 Jan 2008 11:16:16 +0100
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