uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

run.sh (576B)


      1 #!/bin/sh -e
      2 cd "$(dirname "${0}")"
      3 if ! which Xvfb 2>/dev/null; then
      4     echo "error: ${0} depends on Xvfb"
      5     exit 1
      6 fi
      7 if ! which xdotool 2>/dev/null; then
      8     echo "error: ${0} depends on xdotool"
      9     exit 1
     10 fi
     11 if [ ! -e fix_fft.c ]; then
     12     wget https://gist.githubusercontent.com/Tomwi/3842231/raw/67149b6ec81cfb6ac1056fd23a3bb6ce1f0a5188/fix_fft.c
     13 fi
     14 if which clang-format 2>/dev/null; then
     15     ( cd ../.. && clang-format -i etc/autotest/main.c )
     16 fi
     17 ../../bin/uxnasm autotest.tal autotest.rom
     18 gcc -std=gnu89 -Wall -Wextra -o autotest main.c fix_fft.c -lm
     19 ./autotest
     20