Skip to content

Commit a0af03c

Browse files
committed
make build-gnu.sh reentrant
1 parent 0d403a4 commit a0af03c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

util/build-gnu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ cd -
8989

9090
export CARGOFLAGS # tell to make
9191
"${MAKE}" UTILS=install
92-
ln -vf "${UU_BUILD_DIR}/install" "${UU_BUILD_DIR}/ginstall" # The GNU tests use renamed install to ginstall
92+
[ -e "${UU_BUILD_DIR}/ginstall" ] || ln -vf "${UU_BUILD_DIR}/install" "${UU_BUILD_DIR}/ginstall" # The GNU tests use renamed install to ginstall
9393
if [ "${SELINUX_ENABLED}" = 1 ];then
9494
# Build few utils for SELinux for faster build. MULTICALL=y fails...
9595
"${MAKE}" UTILS="cat chcon chmod cp cut dd echo env groups id ln ls mkdir mkfifo mknod mktemp mv printf rm rmdir runcon seq stat test touch tr true uname wc whoami"
9696
else
9797
# Use MULTICALL=y for faster build
9898
"${MAKE}" MULTICALL=y SKIP_UTILS="install more"
9999
for binary in $("${UU_BUILD_DIR}"/coreutils --list)
100-
do ln -vf "${UU_BUILD_DIR}/coreutils" "${UU_BUILD_DIR}/${binary}"
100+
do [ -e "${UU_BUILD_DIR}/${binary}" ] || ln -vf "${UU_BUILD_DIR}/coreutils" "${UU_BUILD_DIR}/${binary}"
101101
done
102102
fi
103103

0 commit comments

Comments
 (0)