1 #!/bin/bash 2 3 # build each command as a standalone executable 4 5 NOBUILD=1 scripts/make.sh > /dev/null && 6 ${HOSTCC:-cc} -I . scripts/install.c -o generated/instlist && 7 export PREFIX=${PREFIX:-change/} && 8 mkdir -p "$PREFIX" || exit 1 9 10 # Build all the commands standalone except: 11 12 # sh - shell builtins like "cd" and "exit" need the multiplexer 13 # help - needs to know what other commands are enabled (use command --help) 14 15 for i in $(generated/instlist | egrep -vw "sh|help") 16 do 17 echo -n " $i" && 18 scripts/single.sh $i > /dev/null 2>$PREFIX/${i}.bad && 19 rm $PREFIX/${i}.bad || echo -n '*' 20 done 21 echo 22