snoopy/run.sh

23 lines
245 B
Bash
Raw Normal View History

2020-06-01 01:13:00 +02:00
bin=./flark
output=image.ppm
viewer=$(which feh)
2020-06-03 02:19:20 +02:00
if [ -f $bin ];
then
echo "Removing old binary"
rm $bin
fi
2020-06-01 01:13:00 +02:00
# generate makefile
cmake .
# build
make
# generate output image
rm $output
$bin >> $output
#display image
$viewer $output