blob: 402c0584ebd27af9ad050f7efe709ed2715c4c55 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
# This script does the following:
# 1. Builds the project
# 2. Compiles selected file
# 3. Assembles executable from compiled asm
# 4. Runs the executable
# 5. Echoes the output of the executable
if [ -z "$1" ]
then
echo "Usage: $0 <arguments to cupcc>"
exit 1
fi
set -xe
make
build/cupcc "$@"
make build/output.out
set +e
build/output.out 1 2 3 4 "Hello World" "huh looky here :^)"
echo "Exit status: $?"
|