24 lines
637 B
Bash
Executable File
24 lines
637 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# build each command as a standalone executable
|
|
|
|
source scripts/portability.sh
|
|
|
|
NOBUILD=1 scripts/make.sh > /dev/null &&
|
|
${HOSTCC:-cc} -I . scripts/install.c -o "$UNSTRIPPED"/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 $("$UNSTRIPPED"/instlist | egrep -vw "sh|help")
|
|
do
|
|
echo -n " $i" &&
|
|
scripts/single.sh $i > /dev/null 2>$PREFIX/${i}.bad &&
|
|
rm $PREFIX/${i}.bad || echo -n '*'
|
|
done
|
|
echo
|