• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 except:
13
14# sh - shell builtins like "cd" and "exit" need the multiplexer
15# help - needs to know what other commands are enabled (use command --help)
16
17for i in $("$UNSTRIPPED"/instlist | egrep -vw "sh|help")
18do
19  echo -n " $i" &&
20  scripts/single.sh $i > /dev/null 2>$PREFIX/${i}.bad &&
21    rm $PREFIX/${i}.bad || echo -n '*'
22done
23echo
24