Mercurial > hg > aboriginal
comparison host-tools.sh @ 281:d5cda5597722
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.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 31 Jan 2008 01:23:18 -0600 |
parents | ffef8c1fe240 |
children | 309b574a5059 |
comparison
equal
deleted
inserted
replaced
280:00ee362817e1 | 281:d5cda5597722 |
---|---|
114 # make && | 114 # make && |
115 # make install && | 115 # make install && |
116 # cd .. && | 116 # cd .. && |
117 # $CLEANUP qemu-* | 117 # $CLEANUP qemu-* |
118 | 118 |
119 for i in ar as bzip2 cc cp find gcc install ld make nm od sort | 119 for i in ar as nm cc gcc make ld bzip2 cp find install od sort |
120 do | 120 do |
121 rm -f "${HOSTTOOLS}/$i" | 121 [ ! -f "${HOSTTOOLS}/$i" ] && (ln -s `which $i` "${HOSTTOOLS}/$i" || dienow) |
122 ln -sf `which $i` "${HOSTTOOLS}/$i" || dienow | |
123 done | 122 done |
124 | 123 |
125 echo -e "\e[32mHost tools build complete.\e[0m" | 124 echo -e "\e[32mHost tools build complete.\e[0m" |