change.sh 453 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # build each command as a standalone executable
  3. source scripts/portability.sh
  4. NOBUILD=1 scripts/make.sh > /dev/null &&
  5. ${HOSTCC:-cc} -I . scripts/install.c -o "$UNSTRIPPED"/instlist &&
  6. export PREFIX=${PREFIX:-change/} &&
  7. mkdir -p "$PREFIX" || exit 1
  8. # Build all the commands standalone
  9. for i in $("$UNSTRIPPED"/instlist)
  10. do
  11. echo -n " $i" &&
  12. scripts/single.sh $i &>$PREFIX/${i}.bad &&
  13. rm $PREFIX/${i}.bad || echo -n '*'
  14. done
  15. echo