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