view scripts/ @ 1108:fb8467436e6a draft

Tweak terminal_size to never set either to 0, and return true/false whether it could determine at least one coordinate. (If you set $COLUMNS but not $ROWS, we assume you're happy with the 80x25 default for the other.)
author Rob Landley <>
date Thu, 07 Nov 2013 09:04:50 -0600
parents 40d0c96a8e89
children ecec71144ddd
line wrap: on
line source


# Build a standalone toybox command

if [ -z "$1" ]
  echo "usage: command" >&2
  exit 1

NAME=$(echo $1 | tr a-z- A-Z_)
export KCONFIG_CONFIG=.singleconfig

make allnoconfig > /dev/null &&
sed -i -e "s/\(CONFIG_TOYBOX\)=y/# \1 is not set/" \
       -e "s/# CONFIG_\($NAME\|TOYBOX_HELP[^ ]*\) is not set/CONFIG_\1=y/" \
       "$KCONFIG_CONFIG" &&
make &&
mv toybox $PREFIX$1