3dtrial/tinyrender2/run.sh
2024-07-26 17:32:20 -04:00

12 lines
196 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 -o render
echo "Running"
./render "-cpuprofile=$1.prof" >"$1.ppm"