3dtrial/tinyrender1_perspective/run.sh
2024-07-24 18:42:44 -04:00

12 lines
191 B
Bash
Executable File

#!/bin/sh
if [ $# -ne 1 ]; then
echo "You must pass the basename for the .prof and .ppm"
exit 1
fi
echo "Building"
go build
echo "Running"
./tinyrender1 "-cpuprofile=$1.prof" >"$1.ppm"