eris2010

Documentation: http://frombelow.net/projects/eris2010/
Clone: git clone https://git.frombelow.net/eris2010.git
Log | Files | Refs | README | LICENSE

write_default_files.sh (1391B)


      1 #!/bin/bash
      2 
      3 # This scripts writes a selection of applications both from the main
      4 # distribution and the contrib directory to an SD card.
      5 
      6 KFS_CMD="sudo ../tools/kfs.py"
      7 DEVICE=$1
      8 SW_MAIN=../sw/asm
      9 SW_CONTRIB=./asm
     10 SW_CC65=./c
     11 
     12 for i in 10print serial_line_echo ttt via_test
     13 do
     14     pushd ${SW_MAIN}/$i
     15     make clean all
     16     popd
     17 done
     18 pushd ${SW_MAIN}/ttt
     19 make test
     20 popd
     21 for i in wozmon microchess Tiny-BASIC
     22 do
     23     pushd ${SW_CONTRIB}/$i
     24     make clean all
     25     popd
     26 done
     27 
     28 for i in eliza mmind wumpus
     29 do
     30     pushd ${SW_CC65}/$i
     31     make clean all
     32     popd
     33 done
     34 
     35 # ${KFS_CMD} ${DEVICE} format
     36 ${KFS_CMD} ${DEVICE} store 0 "Tic Tac Toe" ${SW_MAIN}/ttt/ttt.bin
     37 ${KFS_CMD} ${DEVICE} store 1 "Tic Tac Toe (Computer vs. Computer)" ${SW_MAIN}/ttt/ttt_test.bin
     38 ${KFS_CMD} ${DEVICE} store 2 "10PRINT" ${SW_MAIN}/10print/10print.bin
     39 ${KFS_CMD} ${DEVICE} store 3 "Microchess" ${SW_CONTRIB}/microchess/microchess.bin
     40 ${KFS_CMD} ${DEVICE} store 4 "Eliza" ${SW_CC65}/eliza/eliza.bin
     41 ${KFS_CMD} ${DEVICE} store 5 "Wumpus" ${SW_CC65}/wumpus/wumpus.bin
     42 ${KFS_CMD} ${DEVICE} store 6 "Master Mind" ${SW_CC65}/mmind/mmind.bin
     43 ${KFS_CMD} ${DEVICE} store 7 "The Abandoned Farmhouse Adventure" ${SW_CC65}/abandoned_farmhouse/adventure.bin
     44 ${KFS_CMD} ${DEVICE} store 8 "Tiny-BASIC" ${SW_CONTRIB}/Tiny-BASIC/tinybasic.bin
     45 ${KFS_CMD} ${DEVICE} store 9 "Wozmon" ${SW_CONTRIB}/wozmon/wozmon.bin
     46 ${KFS_CMD} ${DEVICE} ls