Minor fixes as well as clean-up surrounding internal functions.

This commit is contained in:
Sam Hardeman 2025-12-13 04:16:43 +01:00
parent 405c1e7244
commit e3a2efdb43
12 changed files with 218 additions and 134 deletions

10
binbox
View file

@ -3,21 +3,21 @@
# Symlinking to the resulting binary with the name of one of the original scripts will trigger
# said script. The idea is similar to `busybox`.
DAISY_INTERNAL=1
LD_INTERNAL=1
. $(dirname $(realpath $0))/daisy.source
args=$@
function help()
{
echo "$DAISY_BIN is a utility that allows you to generate busybox-style combined binaries."
echo "$LD_BIN is a utility that allows you to generate busybox-style combined binaries."
echo "To access the original functionality of an input binary, you can either use a symlink or"
echo "call the function like so: 'combi-bin input-bin <input-bin args>."
echo ""
echo "> Usage:"
echo "Creating boxed binary: $DAISY_BIN -o <BOXED_BIN> <-s source files> <-p include files verbatim> -i INPUT_BINS ..."
echo "<X> Unpacking a boxed binary: $DAISY_BIN -e <BOXED_BIN>"
echo "View this screen: $DAISY_BIN <noargs>"
echo "Creating boxed binary: $LD_BIN -o <BOXED_BIN> <-s source files> <-p include files verbatim> -i INPUT_BINS ..."
echo "<X> Unpacking a boxed binary: $LD_BIN -e <BOXED_BIN>"
echo "View this screen: $LD_BIN <noargs>"
exit 0
}