Mercurial > hg > toybox
view scripts/change.sh @ 1775:57f2a26fa92c draft toast
To ensure that toybox can be installed alongside busybox without
confusing update-alternatives, the paths of the links installed by toybox should
match those installed by busybox. This is accomplished by changing the flags
of a few tools within toybox.
author | Paul Barker <paul@paulbarker.me.uk> |
---|---|
date | Sat, 04 Apr 2015 11:58:06 -0500 |
parents | a5901bfefda5 |
children |
line wrap: on
line source
#!/bin/bash # build each command as a standalone executable NOBUILD=1 scripts/make.sh > /dev/null && ${HOSTCC:-cc} -I . scripts/install.c -o generated/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 $(generated/instlist | egrep -vw "sh|help") do echo -n "$i " && scripts/single.sh $i > /dev/null || touch $PREFIX/${i}.bad done