change.sh 598 B

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