build: Do not assume /bin/sh, basename/dirname.
* install.sh: Do not assume /bin/sh, basename/dirname. * scripts/diff.scm: Likewise.
This commit is contained in:
parent
0ba240a4e0
commit
7603ee1f31
|
@ -29,7 +29,7 @@ DOCDIR=${MODULEDIR-$PREFIX/share/doc/mes}
|
||||||
|
|
||||||
chmod +w $PREFIX/bin/mescc
|
chmod +w $PREFIX/bin/mescc
|
||||||
sed \
|
sed \
|
||||||
-e "s,^#! /bin/sh,#! $SHELL/," \
|
-e "s,^#! /bin/sh,#! $SHELL," \
|
||||||
-e "s,module/,$MODULEDIR/," \
|
-e "s,module/,$MODULEDIR/," \
|
||||||
-e "s,@DATADIR@,$DATADIR,g" \
|
-e "s,@DATADIR@,$DATADIR,g" \
|
||||||
-e "s,@DOCDIR@,$DOCDIR,g" \
|
-e "s,@DOCDIR@,$DOCDIR,g" \
|
||||||
|
@ -41,7 +41,7 @@ sed \
|
||||||
scripts/mescc > $PREFIX/bin/mescc
|
scripts/mescc > $PREFIX/bin/mescc
|
||||||
chmod +w $MODULEDIR/mes/boot-0.scm
|
chmod +w $MODULEDIR/mes/boot-0.scm
|
||||||
sed \
|
sed \
|
||||||
-e "s,^#! /bin/sh,#! $SHELL/," \
|
-e "s,^#! /bin/sh,#! $SHELL," \
|
||||||
-e "s,module/,$MODULEDIR/," \
|
-e "s,module/,$MODULEDIR/," \
|
||||||
-e "s,@DATADIR@,$DATADIR,g" \
|
-e "s,@DATADIR@,$DATADIR,g" \
|
||||||
-e "s,@DOCDIR@,$DOCDIR,g" \
|
-e "s,@DOCDIR@,$DOCDIR,g" \
|
||||||
|
@ -54,5 +54,5 @@ sed \
|
||||||
|
|
||||||
cp scripts/diff.scm $PREFIX/bin/diff.scm
|
cp scripts/diff.scm $PREFIX/bin/diff.scm
|
||||||
sed \
|
sed \
|
||||||
-e "s,^#! /bin/sh,#! $SHELL/," \
|
-e "s,^#! /bin/sh,#! $SHELL," \
|
||||||
scripts/diff.scm > $PREFIX/bin/diff.scm
|
scripts/diff.scm > $PREFIX/bin/diff.scm
|
||||||
|
|
|
@ -4,7 +4,7 @@ mes_p=$(command -v mes)
|
||||||
if [ "$mes_p" -a -z "$MES" ]; then
|
if [ "$mes_p" -a -z "$MES" ]; then
|
||||||
MES=guile
|
MES=guile
|
||||||
fi
|
fi
|
||||||
exec ${MES-mes} -L $(dirname 0) -e '(diff)' -s "$0" "$@"
|
exec ${MES-mes} -L ${0%/*} -e '(diff)' -s "$0" "$@"
|
||||||
!#
|
!#
|
||||||
|
|
||||||
;;; Mes --- Maxwell Equations of Software
|
;;; Mes --- Maxwell Equations of Software
|
||||||
|
|
Loading…
Reference in a new issue