install: Fix prefix confusion.
* install.sh: Substitute @PREFIX@ with MES_PREFIX. * scripts/mescc.mes: Grok PREFIX as MES_PREFIX.
This commit is contained in:
parent
87302af14e
commit
7d32ecd906
|
@ -21,7 +21,10 @@ cp libc-mes.hex2 $MES_PREFIX/lib/libc-mes.hex2
|
|||
cp libc+tcc-mes.hex2 $MES_PREFIX/lib/libc+tcc-mes.hex2
|
||||
|
||||
cp scripts/mescc.mes $PREFIX/bin/mescc.mes
|
||||
cp guile/mescc.scm $PREFIX/bin/mescc.scm
|
||||
sed -e "s,@PREFIX@,$MES_PREFIX,g" \
|
||||
scripts/mescc.mes > $PREFIX/bin/mescc.mes
|
||||
sed -e "s,@PREFIX@,$MES_PREFIX,g" \
|
||||
guile/mescc.scm > $PREFIX/bin/mescc.scm
|
||||
|
||||
mkdir -p $MES_PREFIX
|
||||
tar -cf- doc guile include lib module scaffold stage0 | tar -xf- -C $MES_PREFIX
|
||||
|
|
|
@ -7,12 +7,9 @@ if [ "$MES_PREFIX" = @PREFIX""@ ]
|
|||
then
|
||||
MES_PREFIX=$(cd $(dirname $0)/.. && pwd)
|
||||
export MES_PREFIX
|
||||
fi
|
||||
MES_MODULEDIR=${MES_MODULEDIR-$MES_PREFIX/"module"}
|
||||
export MES_MODULEDIR
|
||||
else
|
||||
MES_MODULEDIR=${MES_MODULEDIR-$MES_PREFIX/share/mes/"module"}
|
||||
export MES_MODULEDIR
|
||||
fi
|
||||
echo '()' | cat $MES_MODULEDIR/mes/base-0.mes $0 /dev/stdin | $MES $MES_FLAGS -- "$@"
|
||||
#paredit:||
|
||||
exit $?
|
||||
|
|
Loading…
Reference in a new issue