From 8761ef256fdb608e063802aa2053973355f55241 Mon Sep 17 00:00:00 2001 From: Luke Gorrie Date: Thu, 29 Jun 2017 18:09:16 +0000 Subject: pharo: Removed obsolete duplicate ofwrapper.sh --- pkgs/development/pharo/vm/wrapper.sh | 62 ------------------------------------ 1 file changed, 62 deletions(-) delete mode 100644 pkgs/development/pharo/vm/wrapper.sh (limited to 'pkgs/development/pharo') diff --git a/pkgs/development/pharo/vm/wrapper.sh b/pkgs/development/pharo/vm/wrapper.sh deleted file mode 100644 index b08a1a6d1280..000000000000 --- 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 -# -# 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 "$@" - -- cgit v1.2.3