Make prep_buildtree harmless when run on top of the source tree.
from Ian Lance Taylor
This commit is contained in:
parent
8f3627d89b
commit
7505e5d0cd
@ -30,9 +30,11 @@ for item in `find "$sourcetree" -type d \( -name CVS -prune -o -print \)`; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
for item in `find "$sourcetree" -name Makefile -print -o -name GNUmakefile -print`; do
|
for item in `find "$sourcetree" -name Makefile -print -o -name GNUmakefile -print`; do
|
||||||
subdir=`expr "$item" : "$sourcetree\(.*\)"`
|
filename=`expr "$item" : "$sourcetree\(.*\)"`
|
||||||
if test ! -f "${item}.in"; then
|
if test ! -f "${item}.in"; then
|
||||||
ln -fs "$item" "$buildtree/$subdir" || exit 1
|
if cmp "$item" "$buildtree/$filename" >/dev/null 2>&1; then : ; else
|
||||||
|
ln -fs "$item" "$buildtree/$filename" || exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user