From 5fb0d1098f33a7806ec2a8daba0cd4c4d747562b Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 13 Sep 2026 22:45:27 +0100 Subject: mk: simplified command handling just do includes in mk again. common.sh was stupidly small, just pointless. replace the entire command dispatcher with eval, printf and awk, because i can, and it further reduces sloccount. Signed-off-by: Leah Rowe --- include/lib.sh | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'include/lib.sh') diff --git a/include/lib.sh b/include/lib.sh index 84e23586..fd1b0444 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -191,30 +191,6 @@ x_() "$@" || err "Unhandled error" "x_" "$@" } -xeq() -{ - [ $# -lt 2 ] && \ - err "no args" xeq - - xbcmd="$1" - chk="$2" - shift 2 - - case "$chk" in - -*) - return 1 - ;; - *) - for eq in "$@"; do - [ "$chk" = "$eq" ] && \ - return 0; : - done - ;; - esac - - err "bad command" xeq "$xbcmd" "$chk" "$@" -} - xchk() { if [ $# -lt 3 ]; then -- cgit v1.2.1