SigScript/C/scripts/build.sh

8 lines
228 B
Bash
Raw Normal View History

#Compiles the entire program then runs it, producing an executable.
#C
2022-06-29 12:55:19 -05:00
printf "Running program...\n\n\n"
if gcc $(find . -type f -name "*.c") ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then
./${PROJECT_NAME} "$@"
2022-06-29 12:55:19 -05:00
fi
printf "\n\n"