Rob Landley | 45962a7 | 2015-02-14 01:08:15 -0600 | [diff] [blame] | 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 |
Rob Landley | cc585db | 2015-07-06 05:08:48 -0500 | [diff] [blame] | 17 | echo -n " $i" && |
| 18 | scripts/single.sh $i > /dev/null 2>$PREFIX/${i}.bad && |
| 19 | rm $PREFIX/${i}.bad || echo -n '*' |
Rob Landley | 45962a7 | 2015-02-14 01:08:15 -0600 | [diff] [blame] | 20 | done |
Rob Landley | 5f225ca | 2015-08-05 21:23:50 -0500 | [diff] [blame] | 21 | echo |