Major chhanges: daisy.source renamed to ld.source.

All files have been prettified by making sure we use 2-space indent.

agenda:
Instead of the hidden .tree file, a file created "More..." is made.
You can use (ex) "agenda --view "2026" to get a full list of files from that
year/date/day.
Additionally, minor fixes have been made.

clip:
You can now use "-c" to clear the clipbaord.
This commit is contained in:
Sam Hardeman 2026-05-05 15:42:34 +02:00
parent 056ab01ed4
commit ab730db2f7
14 changed files with 264 additions and 534 deletions

View file

@ -4,7 +4,7 @@
# said script. The idea is similar to `busybox`.
LD_INTERNAL=1
. $(dirname $(realpath $0))/daisy.source
. $(dirname $(realpath $0))/ld.source
args=$@
@ -16,9 +16,9 @@ function help()
echo "call the function like so: 'combi-bin input-bin <input-bin args>."
echo ""
echo "> Usage:"
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>"
echo "Boxing scripts: scriptbox -o <BOXED_BIN> <-s source files>"
echo " <-p include files verbatim> -i INPUT_BINS ..."
echo "View help: $LD_BIN <noargs>"
exit 0
}
@ -63,45 +63,45 @@ while [ $i -lt $# ]; do
-i)
((i++))
while [ $i -lt $# ] && [[ ! "${args[$i]}" =~ ^- ]]; do
file="${args[$i]}"
((i++))
if [[ -e "$file" ]]; then
inputs+=("$file")
((b++))
else
echo "WARNING: Missing input binary: \"$file\"."
echo "Module will NOT be available!"
fi
file="${args[$i]}"
((i++))
if [[ -e "$file" ]]; then
inputs+=("$file")
((b++))
else
echo "WARNING: Missing input binary: \"$file\"."
echo "Module will NOT be available!"
fi
done
continue
;;
-s)
((i++))
while [ $i -lt $# ] && [[ ! "${args[$i]}" =~ ^- ]]; do
file="${args[$i]}"
((i++))
if [[ -e "$file" ]]; then
sources+=("$file")
((s++))
else
echo "WARNING: Missing input source: \"$file\"."
echo "File will NOT be sourced!"
fi
file="${args[$i]}"
((i++))
if [[ -e "$file" ]]; then
sources+=("$file")
((s++))
else
echo "WARNING: Missing input source: \"$file\"."
echo "File will NOT be sourced!"
fi
done
continue
;;
-p)
((i++))
while [ $i -lt $# ] && [[ ! "${args[$i]}" =~ ^- ]]; do
file="${args[$i]}"
((i++))
if [[ -e "$file" ]]; then
includes+=("$file")
((p++))
else
echo "WARNING: Missing input include: \"$file\"."
echo "File will NOT be included!"
fi
file="${args[$i]}"
((i++))
if [[ -e "$file" ]]; then
includes+=("$file")
((p++))
else
echo "WARNING: Missing input include: \"$file\"."
echo "File will NOT be included!"
fi
done
continue
;;