varch/run.sh
2024-07-21 19:02:13 +08:00

24 lines
339 B
Bash

#!/bin/bash
exe_file="built/app"
echo "cleaning..."
if [ -f $exe_file ]; then
rm $exe_file
fi
echo "compilling..."
make
if [ -f $exe_file ]; then
echo "executing..."
./$exe_file
else
echo "compile fail!!!"
fi
# find . -name *.h -o -name *.c | xargs wc -l
# enter key to continue
read -p "Press enter to continue"