File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /usr/ bin/env bash
22# Run the VM, setting SQUEAK_PLUGINS if unset to the VM's containing directory
33# if unset, and ensuring LD_LIBRARY_PATH includes the VM's containing directory.
4- BIN=` /usr/bin/ dirname " $0 " ` /@expanded_relative_imgdir@
4+ BIN=$( dirname " $0 " ) /@expanded_relative_imgdir@
55GDB=
66if [ " ${SQUEAK_PLUGINS-unset} " = unset ]; then
77 export SQUEAK_PLUGINS=" $BIN "
1515# At least on linux LD_LIBRARY_PATH's components must be absolute path names
1616case " $BIN " in
1717/* ) PLUGINS=" $BIN " ;;
18- * ) PLUGINS=" ` pwd` /$BIN "
18+ * ) PLUGINS=" $( pwd) /$BIN "
1919esac
2020
2121if [ $( uname -s) = " OpenBSD" ]; then
2626# libc (e.g. through the FFI) then it must use the same version that the VM uses
2727# and so it should take precedence over /lib libc. This is done by setting
2828# LD_LIBRARY_PATH appropriately, based on ldd's idea of the libc use by the VM.
29- LIBC_SO=" ` /usr/bin/ ldd " $BIN /squeak" | /bin/ fgrep /libc. | sed ' s/^.*=> \([^ ]*\).*/\1/' ` "
30- PLATFORMLIBDIR=` expr " $LIBC_SO " : ' \(.*\)/libc.*' `
29+ LIBC_SO=" $( ldd " $BIN /squeak" | fgrep /libc. | sed ' s/^.*=> \([^ ]*\).*/\1/' ) "
30+ PLATFORMLIBDIR=$( expr " $LIBC_SO " : ' \(.*\)/libc.*' )
3131
3232if [ " $PLATFORMLIBDIR " = " " ]; then
3333{
@@ -37,7 +37,7 @@ if [ "$PLATFORMLIBDIR" = "" ]; then
3737 echo " LIBC_SO=" $LIBC_SO
3838 cat /etc/* -release* | grep -v // | sed ' s/^/ /'
3939 echo -n " UNAME=" ; uname -a
40- MACHINE=` uname -m`
40+ MACHINE=$( uname -m)
4141 case " $MACHINE " in
4242 * 64* )
4343 echo " System seems to be 64 bit. You may need to (re)install the 32-bit libraries."
You can’t perform that action at this time.
0 commit comments