#!/bin/bash # g++ -c -I/$HOME/include tetrahedron_ncc_rule_prb.cpp if [ $? -ne 0 ]; then echo "Errors compiling tetrahedron_ncc_rule_prb.cpp" exit fi # g++ tetrahedron_ncc_rule_prb.o /$HOME/libcpp/$ARCH/tetrahedron_ncc_rule.o -lm if [ $? -ne 0 ]; then echo "Errors linking and loading tetrahedron_ncc_rule_prb.o." exit fi # rm tetrahedron_ncc_rule_prb.o # mv a.out tetrahedron_ncc_rule_prb ./tetrahedron_ncc_rule_prb > tetrahedron_ncc_rule_prb_output.txt if [ $? -ne 0 ]; then echo "Errors running tetrahedron_ncc_rule_prb." exit fi rm tetrahedron_ncc_rule_prb # echo "Program output written to tetrahedron_ncc_rule_prb_output.txt"