# HG changeset patch # User Rob Landley # Date 1201764198 21600 # Node ID d5cda559772295cab6b885db9bb6bebb57ed18f0 # Parent 00ee362817e18ebad77a6e2f86fafac081ce4f11 Back out part of 276, make host-tools not delete symlinks to avoid opening a race window where starting a new ./build.sh might screw up an existing one. diff -r 00ee362817e1 -r d5cda5597722 host-tools.sh --- a/host-tools.sh Wed Jan 30 23:15:46 2008 -0600 +++ b/host-tools.sh Thu Jan 31 01:23:18 2008 -0600 @@ -116,10 +116,9 @@ # cd .. && # $CLEANUP qemu-* -for i in ar as bzip2 cc cp find gcc install ld make nm od sort +for i in ar as nm cc gcc make ld bzip2 cp find install od sort do - rm -f "${HOSTTOOLS}/$i" - ln -sf `which $i` "${HOSTTOOLS}/$i" || dienow + [ ! -f "${HOSTTOOLS}/$i" ] && (ln -s `which $i` "${HOSTTOOLS}/$i" || dienow) done echo -e "\e[32mHost tools build complete.\e[0m"