floppy-utils/install.sh
Greg Gauthier 34aeb7bc0d feat(floppy-utils): add bash toolkit for retro floppy disk operations
Introduce floppy-utils: a CLI for creating, editing, archiving, and
restoring floppy disk images on Linux with USB floppy drive support.
Includes main floppy command, legacy wrappers, dependency checker,
install script, and comprehensive documentation.
2026-06-01 20:54:30 +01:00

23 lines
583 B
Bash
Executable File

#!/usr/bin/env bash
# Install floppy-utils scripts to ~/.local/bin
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [[ -x "$ROOT/check-deps.sh" ]]; then
"$ROOT/check-deps.sh" -q || {
echo "Run ./check-deps.sh --install to fix missing dependencies." >&2
exit 1
}
fi
SRC="$ROOT/src"
DEST="${HOME}/.local/bin"
mkdir -p "$DEST"
for cmd in floppy floppy-make floppy-attach floppy-burn; do
install -m 755 "$SRC/$cmd" "$DEST/$cmd"
done
echo "Installed to $DEST"
echo "Ensure \$HOME/.local/bin is on your PATH, then run: floppy help"