提交 7505e5d0 编写于 作者: P Peter Eisentraut

Make prep_buildtree harmless when run on top of the source tree.

from Ian Lance Taylor
上级 8f3627d8
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册