Skip to content

Commit 06697ff

Browse files
committed
Fix template for squeak script
1 parent a605123 commit 06697ff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

platforms/unix/config/squeak.sh.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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@
55
GDB=
66
if [ "${SQUEAK_PLUGINS-unset}" = unset ]; then
77
export SQUEAK_PLUGINS="$BIN"
@@ -15,7 +15,7 @@ fi
1515
# At least on linux LD_LIBRARY_PATH's components must be absolute path names
1616
case "$BIN" in
1717
/*) PLUGINS="$BIN";;
18-
*) PLUGINS="`pwd`/$BIN"
18+
*) PLUGINS="$(pwd)/$BIN"
1919
esac
2020

2121
if [ $(uname -s) = "OpenBSD" ]; then
@@ -26,8 +26,8 @@ fi
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

3232
if [ "$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."

0 commit comments

Comments
 (0)