blob: 99dcfde95ae3a551f9dca59f87286f93026698ec [file] [log] [blame]
Rob Landley45962a72015-02-14 01:08:15 -06001#!/bin/bash
2
3# build each command as a standalone executable
4
5NOBUILD=1 scripts/make.sh > /dev/null &&
6${HOSTCC:-cc} -I . scripts/install.c -o generated/instlist &&
7export PREFIX=${PREFIX:-change/} &&
8mkdir -p "$PREFIX" || exit 1
9
10# Build all the commands standalone except:
11
12# sh - shell builtins like "cd" and "exit" need the multiplexer
13# help - needs to know what other commands are enabled (use command --help)
14
15for i in $(generated/instlist | egrep -vw "sh|help")
16do
Rob Landleycc585db2015-07-06 05:08:48 -050017 echo -n " $i" &&
18 scripts/single.sh $i > /dev/null 2>$PREFIX/${i}.bad &&
19 rm $PREFIX/${i}.bad || echo -n '*'
Rob Landley45962a72015-02-14 01:08:15 -060020done
Rob Landley5f225ca2015-08-05 21:23:50 -050021echo