aboutsummaryrefslogtreecommitdiff
path: root/tools/HardwareSimulator.sh
diff options
context:
space:
mode:
authorYuchen Pei <me@ypei.me>2018-01-20 15:41:49 +0100
committerYuchen Pei <me@ypei.me>2018-01-20 15:41:49 +0100
commitd3a0cc3a8ba6dfeb64d3faeffdeb6845b60e5840 (patch)
treed58df9ec2480e2a9ec6240f9c797f83d1a0b1056 /tools/HardwareSimulator.sh
parent3571f998b28fbc8d9250ba04c983935f10a16c15 (diff)
rearranged the dir for github
- removed tools and pdfs - rearranged the projects dirs - added md files - other minor changes
Diffstat (limited to 'tools/HardwareSimulator.sh')
-rwxr-xr-xtools/HardwareSimulator.sh34
1 files changed, 0 insertions, 34 deletions
diff --git a/tools/HardwareSimulator.sh b/tools/HardwareSimulator.sh
deleted file mode 100755
index 47e7482..0000000
--- a/tools/HardwareSimulator.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env sh
-
-# $Id: HardwareSimulator.sh,v 1.1 2014/06/17 21:14:01 marka Exp $
-# mark.armbrust@pobox.com
-
-# User's CDPATH can interfere with cd in this script
-unset CDPATH
-# Get the true name of this script
-script="`test -L "$0" && readlink -n "$0" || echo "$0"`"
-dir="$PWD"
-cd "`dirname "$script"`"
-if [ \( $# -gt 1 \) -o \( "$1" = "-h" \) -o \( "$1" = "--help" \) ]
-then
- echo "Usage:"
- echo " `basename "$0"` Starts the Hardware Simulator in"
- echo " interactive mode."
- echo " `basename "$0"` FILE.tst Starts the Hardware Simulator and runs the"
- echo " FILE.tst test script. The success/failure"
- echo " message is printed to the command console."
-elif [ $# -eq 0 ]
-then
- # Run hardware simulator in interactive mode
- java -classpath "${CLASSPATH}:bin/classes:BuiltIn:bin/lib/Hack.jar:bin/lib/HackGUI.jar:bin/lib/Simulators.jar:bin/lib/SimulatorsGUI.jar:bin/lib/Compilers.jar" HardwareSimulatorMain &
-else
- # Convert arg1 to an absolute path and run hardware simulator with arg1
- if [ `echo "$1" | sed -e "s/\(.\).*/\1/"` = / ]
- then
- arg1="$1"
- else
- arg1="${dir}/$1"
- fi
-# echo Running "$arg1"
- java -classpath "${CLASSPATH}:bin/classes:BuiltIn:bin/lib/Hack.jar:bin/lib/HackGUI.jar:bin/lib/Simulators.jar:bin/lib/SimulatorsGUI.jar:bin/lib/Compilers.jar" HardwareSimulatorMain "$arg1"
-fi