mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-17 19:30:00 +08:00
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
|
||||
|
||||
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
|
||||
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
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user