summary refs log tree commit diff
path: root/pkgs/development/pharo
diff options
context:
space:
mode:
authorLuke Gorrie <luke@snabb.co>2017-06-29 18:09:16 +0000
committerLuke Gorrie <luke@snabb.co>2017-06-29 18:09:16 +0000
commit8761ef256fdb608e063802aa2053973355f55241 (patch)
treee321a47b13b3a63a472df968ee6999fe10c4c75e /pkgs/development/pharo
parent54be67dbd03b0ede6dccce34581367995d3c1fd8 (diff)
pharo: Removed obsolete duplicate ofwrapper.sh
Diffstat (limited to 'pkgs/development/pharo')
-rw-r--r--pkgs/development/pharo/vm/wrapper.sh62
1 files changed, 0 insertions, 62 deletions
diff --git a/pkgs/development/pharo/vm/wrapper.sh b/pkgs/development/pharo/vm/wrapper.sh
deleted file mode 100644
index b08a1a6d12809..0000000000000
--- a/pkgs/development/pharo/vm/wrapper.sh
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/sh
-# This is based on the script by David T. Lewis posted here:
-#  http://lists.squeakfoundation.org/pipermail/vm-dev/2017-April/024836.html
-#
-# VM run utility script
-# usage: run <myimage>
-#
-# Select a VM and run an image based on the image format number
-
-# Search for the image filename in the command line arguments
-for arg in $*; do
-    case ${arg} in
-        -*) # ignore
-        ;;
-        *) # either an option argument or the image name
-            if test -f ${arg}; then
-                magic=$(file -m @share@/magic "$arg")
-                case "$magic" in
-                    'Smalltalk image V3 32b*')
-                        image=${arg}
-                        vm=@cog-vm@/bin/pharo-cog
-                        ;;
-                    'Smalltalk image Spur 32b*')
-                        image=${arg}
-                        vm=@spur-vm@/bin/pharo-spur
-                        ;;
-                    'Smalltalk image Spur 64b*')
-                        if "@spur64-vm@" == "none"; then
-                            echo "error: detected 64-bit image but 64-bit VM is not available" >&2
-                            exit 1
-                        fi
-                        image=${arg}
-                        vm=@spur64-vm@/bin/pharo-spur64
-                        ;;
-                esac
-            fi
-            ;;
-    esac
-done
-
-# Extra arguments to pass to the VM
-args=""
-
-# Print a message to explain our DWIM'ery.
-if -n "$image"; then
-    echo "using VM selected by image type."
-    echo "  image: $image"
-    echo "  type:  $magic"
-    echo "  vm:    $vm"
-elif test "$#" == 0; then
-    echo "using default vm and image; none specified on command line"
-    args="@default-image@"
-    # XXX Just assume this is the right VM (for pharo launcher)
-    vm=@cog-vm@/bin/pharo-cog
-else
-    echo "using default vm; image type not detected"
-fi
-
-# Run the VM
-set -f
-exec ${vm} $args "$@"
-