#!/bin/sh set -e set -x echo "First source all variables and THEN run this script" read something LOG=~/master-thesis/netpfga/log/compile-$(date +%F-%H%M%S) exec | tee "$LOG" exec 2>&1 # Step 1..3: create code # Step 4: date cd $P4_PROJECT_DIR && make # Step 5: sdnet simulation date cd $P4_PROJECT_DIR/nf_sume_sdnet_ip/SimpleSumeSwitch && ./vivado_sim.bash expected_line=$(grep ^expected "$LOG" | sed -e 's/.*=