Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- debug=""
- if [ $1 = "-g" ] ; then
- debug="-g -O0 "
- shift
- fi
- ./pscala -o "/tmp/pscala_tmp.s" "$1" && \
- gcc $debug -o "/tmp/pscala_tmp" "/tmp/pscala_tmp.s" && \
- (if [ "$debug" = "" ] ; then /tmp/pscala_tmp ; fi)
- out=$?
- if (( $out > 0 )); then exit $out; fi
- if [ "$debug" != "" ]; then
- gdb /tmp/pscala_tmp
- fi
- rm -f /tmp/pscala_tmp{.s,}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement