compile_no_graph.sh 459 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # This script is run by FreeOberon on Linux.
  3. # Current directory of the script will be where
  4. # FreeOberon executable is located.
  5. # This particular script is for console programs.
  6. cd bin
  7. VOCDIR=../data/bin/voc
  8. VOC=$VOCDIR/bin/voc
  9. CC=gcc
  10. $VOC -OC -cfFm ../Programs/$1
  11. retcode=$?
  12. if [ "$retcode" -eq "0" ]; then
  13. THENAME="${1%.*}"
  14. $CC -fPIC -g -I $VOCDIR/C/include \
  15. -o $THENAME $THENAME.o \
  16. $VOCDIR/lib/libvoc-OC.a
  17. fi
  18. cd ..
  19. exit $retcode