scripts: Allow running with any mes.
* scripts/mescc.mes: Run $MES if set, default to ../scripts/mes. * scripts/repl.mes: Likewise.
This commit is contained in:
parent
773efafd8f
commit
a226588a5e
|
@ -1,7 +1,8 @@
|
|||
#! /bin/sh
|
||||
# -*-scheme-*-
|
||||
MES=${MES-$(dirname $0)/mes}
|
||||
prefix=module/
|
||||
echo '()' | cat $prefix/mes/base-0.mes $0 /dev/stdin | $(dirname $0)/mes $MES_FLAGS "$@"
|
||||
echo '()' | cat $prefix/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
||||
#paredit:||
|
||||
chmod +x a.out
|
||||
exit $?
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#! /bin/sh
|
||||
# -*-scheme-*-
|
||||
MES_ARENA=${MES_ARENA-20000000}
|
||||
MES=${MES-$(dirname $0)/mes}
|
||||
MES_ARENA=${MES_ARENA-30000000}
|
||||
export MES_ARENA
|
||||
prefix=module/
|
||||
cat $prefix/mes/base-0.mes $0 /dev/stdin | $(dirname $0)/mes $MES_FLAGS "$@"
|
||||
cat $prefix/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS "$@"
|
||||
#paredit:|
|
||||
exit $?
|
||||
!#
|
||||
|
|
Loading…
Reference in a new issue