-
-
Save peteruhnak/142a6b30494354df21d8 to your computer and use it in GitHub Desktop.
pharo-scripting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# place me in $PATH | |
set -e | |
if [ -z "$1" ]; then | |
echo "Missing script file" | |
exit 1 | |
fi | |
readonly PROGDIR=$(readlink -m $(dirname $0)) | |
readonly SCRIPT=$(readlink -f $1) | |
# change as needed | |
readonly VM="pharo-vm" | |
readonly IMAGE="$PROGDIR/pharo-sh/latest.image" | |
$VM --nodisplay $IMAGE st --quit $SCRIPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env psh | |
Transcript logCr: Smalltalk image imageFormatVersion. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ ./test.st