- remove dangling symlinks after the runs - check if the temporary directory containing the links exists rather than unconditionally creating it for every single applet.
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -101,15 +101,18 @@ for applet in $applets; do | |
| applet=$(echo "$applet" | sed -n 's/\.tests$//p') | |
| if [ ${#applet} -ne 0 ] | |
| then | |
| - | mkdir links 2>/dev/null |
| - | rm -f links/"$applet" |
| + | if [ -d links ]; then |
| + | rm -f links/"$applet" |
| + | else |
| + | mkdir links 2> /dev/null |
| + | fi |
| ln -s ${bindir:-../..}/busybox links/"$applet" | |
| PATH="$srcdir:$PATH" COMMAND="links/$applet" \ | |
| "${srcdir:-.}/$applet".tests | |
| if [ $? -ne 0 ]; then status=1; fi | |
| fi | |
| - | |
| done | |
| - | |
| + | rm -f links/* |
| + | rmdir links |
| exit $status | |