diff --git a/README.md b/README.md index 32741b3..5bebda1 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,8 @@ Please complete this checklist (turn [ ] into [X]) before you submit: - [x] I completed c/compile.sh - [x] I completed c/run.sh - [x] I completed c/disassemble.sh -- [ ] I wrote the source code myself and did not look at the source code of my classmates -- [ ] I ran test/test.sh and verified that it produces the expected output -- [ ] I verified that the disassembled instructions appear (not just the function names) -- [ ] I committed my changes (at least one commit, but possibly many) -- [ ] I pushed my commits to GitHub +- [x] I wrote the source code myself and did not look at the source code of my classmates +- [x] I ran test/test.sh and verified that it produces the expected output +- [x] I verified that the disassembled instructions appear (not just the function names) +- [x] I committed my changes (at least one commit, but possibly many) +- [x] I pushed my commits to GitHub diff --git a/c/compile.sh b/c/compile.sh index bd22197..8d17079 100755 --- a/c/compile.sh +++ b/c/compile.sh @@ -1,3 +1,7 @@ #!/bin/sh +set -eou pipefail + +cd "$(dirname "$0")" + gcc -o main ./main.c \ No newline at end of file diff --git a/c/disassemble.sh b/c/disassemble.sh index a06d786..38d9210 100755 --- a/c/disassemble.sh +++ b/c/disassemble.sh @@ -1,3 +1,7 @@ #!/bin/sh +set -eou pipefail + +cd "$(dirname "$0")" + otool -xv ./main \ No newline at end of file diff --git a/c/run.sh b/c/run.sh index a56af46..448e2c0 100755 --- a/c/run.sh +++ b/c/run.sh @@ -1,3 +1,7 @@ #!/bin/sh +set -eou pipefail + +cd "$(dirname "$0")" + ./main \ No newline at end of file diff --git a/java/compile.sh b/java/compile.sh index a556454..ecf7b0b 100755 --- a/java/compile.sh +++ b/java/compile.sh @@ -1,3 +1,7 @@ #!/bin/sh +set -eou pipefail + +cd "$(dirname "$0")" + javac ./Main.java \ No newline at end of file diff --git a/java/disassemble.sh b/java/disassemble.sh index 8995844..c774910 100755 --- a/java/disassemble.sh +++ b/java/disassemble.sh @@ -1,3 +1,7 @@ #!/bin/sh +set -eou pipefail + +cd "$(dirname "$0")" + javap -c ./Main.class \ No newline at end of file diff --git a/java/run.sh b/java/run.sh index 62c5bba..fff0065 100755 --- a/java/run.sh +++ b/java/run.sh @@ -1,3 +1,7 @@ #!/bin/sh +set -eou pipefail + +cd "$(dirname "$0")" + java -cp . Main \ No newline at end of file