blob: 8b8ab92b7e6814353a857b51ad3886359b1534f2 [file] [log] [blame]
# build each command as a standalone executable
NOBUILD=1 scripts/ > /dev/null &&
${HOSTCC:-cc} -I . scripts/install.c -o generated/instlist &&
export PREFIX=${PREFIX:-change/} &&
mkdir -p "$PREFIX" || exit 1
# Build all the commands standalone except:
# sh - shell builtins like "cd" and "exit" need the multiplexer
# help - needs to know what other commands are enabled (use command --help)
for i in $(generated/instlist | egrep -vw "sh|help")
echo -n "$i " &&
scripts/ $i > /dev/null || touch $PREFIX/${i}.bad