hpemung/dist/setup-hpemu-home.sh
2024-04-15 13:40:10 +02:00

11 lines
234 B
Bash
Executable file

#!/usr/bin/env sh
DOTHPEMU=${DOTHPEMU:-.config/hpemu}
ROM=${ROM:-gxrom-r}
mkdir -p ~/"${DOTHPEMU}"
[ -e ~/"${DOTHPEMU}"/rom ] && rm ~/"${DOTHPEMU}"/rom
ln -s @PREFIX@/share/hpemu/ROMs/"$ROM" ~/"${DOTHPEMU}"/rom
cd ~/"${DOTHPEMU}"