git @ Cat's Eye Technologies Funicular / master eg / Apple-II / Funicularfile
master

Tree @master (Download .tar.gz)

Funicularfile @masterraw · history · blame

# TODO: let a Funicularfile say simply REQUIRED_TOOLS="linapple a2tools"

for tool in linapple a2tools; do
  toolpath=`which $tool`
  if [ "X$toolpath" = "X" ]; then
    echo "You will need $tool on your search path to use this Funicular."
    exit 1
  fi
done

PLATFORM=apple2plus-linapple
INSTALL_IMAGE='Master.dsk'    # This can be retrieved from the linapple repository
SETUP_IMAGE='setup.dsk'
SYSTEM_IMAGE='system.dsk'
DIST_IMAGE='dist.dsk'

if [ "x$DISTREPO_ROOT" = "x" ]; then
    DISTREPO_ROOT="https://github.com/"
fi
DISTREPOS="
  catseye/apple-befunge
"

setup_script() {
    for a2file in MYHELLO KEYS KEYS1 AA; do
      a2rm "${SYSTEM_IMAGE}" $a2file
    done
    for a2file in APPLE\ BEFUNGE\ EDITOR ; do
      a2out -r distrepos/apple-befunge/disk/befunge.dsk "${a2file}"|a2in -r a "${SYSTEM_IMAGE}" "${a2file}"
    done
    for a2file in HELLO.BF HEX.BF HWII.BF MAZE.BF ; do
      a2out -r distrepos/apple-befunge/disk/befunge.dsk "${a2file}"|a2in -r t "${SYSTEM_IMAGE}" "${a2file}"
    done

    a2ls "${SYSTEM_IMAGE}"
}