android_external_toybox/scripts/change.sh
Rob Landley 45962a70e0 Move guts of "make change" to scripts/change.sh, don't try to build sh or help standalone.
sh builtin commands need multiplexer, help describes other enabled commands.
2015-02-14 01:08:15 -06:00

20 lines
558 B
Bash
Executable File

#!/bin/bash
# build each command as a standalone executable
NOBUILD=1 scripts/make.sh > /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")
do
echo -n "$i " &&
scripts/single.sh $i > /dev/null || touch $PREFIX/${i}.bad
done