mescc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #! /usr/bin/env bash
  2. # GNU Mes --- Maxwell Equations of Software
  3. # Copyright ?? 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
  4. #
  5. # This file is part of GNU Mes.
  6. #
  7. # GNU Mes is free software; you can redistribute it and/or modify it
  8. # under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 3 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # GNU Mes is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
  19. if [ "$V" = 2 ]; then
  20. set -x
  21. fi
  22. # Variables
  23. bindir=bin
  24. MES=${MES-${bindir}/mes}
  25. prefix=${prefix-.}
  26. export prefix
  27. includedir=${includedir-${prefix/include}}
  28. export includedir
  29. libdir=${libdir-${prefix}/lib}
  30. export libdir
  31. MES_ARENA=${MES_ARENA-20000000}
  32. export MES_ARENA
  33. MES_MAX_ARENA=${MES_MAX_ARENA-${MES_ARENA}}
  34. export MES_MAX_ARENA
  35. MES_STACK=${MES_STACK-6000000}
  36. export MES_STACK
  37. mes_cpu=${mes_cpu-x86}
  38. export mes_cpu
  39. sep=
  40. if [ "$(basename ${SCHEME-$MES})" = "mes" ]; then
  41. sep=--
  42. fi
  43. dir=$(dirname $0)
  44. ${SCHEME-$MES} \
  45. --no-auto-compile\
  46. -e main\
  47. -L /usr/local/share/guile/site/2.2\
  48. -C /usr/local/lib/guile/2.2/site-ccache\
  49. $dir/mescc.scm $sep "$@"