feat(arch): organize ELF binaries into arch/{x86_64,aarch64,armv6l,i386} with bin-env and arch-dispatcher

This commit is contained in:
Kryštof Pešek
2026-11-05 18:02:54 +01:00
parent 45a3731cbc
commit 6322ff9e89
49 changed files with 47 additions and 11 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# =============================================================================
# ~/bin/arch-dispatcher — Universal Architecture Binary Runner
# Dispatches commands to ~/bin/arch/$(uname -m)/<cmd>
# =============================================================================
CMD="$(basename "$0")"
ARCH="$(uname -m)"
TARGET="$HOME/bin/arch/$ARCH/$CMD"
if [ -x "$TARGET" ]; then
exec "$TARGET" "$@"
fi
echo "Error: '$CMD' is not available for architecture '$ARCH' in ~/bin/arch/$ARCH/" >&2
exit 127