cordle/build.sh

19 lines
463 B
Bash
Raw Normal View History

2025-12-17 10:44:22 +00:00
#!/usr/bin/env zsh
2025-12-18 12:12:24 +00:00
#
2025-12-17 17:09:38 +00:00
mkdir -p build/cordle
echo "Building application."
gcc -std=c90 -pedantic -Wpedantic -Wall -Wextra -Wstrict-prototypes -Wold-style-definition
2025-12-17 17:09:38 +00:00
export RESULT=$?
if (( RESULT == 0 )); then
echo "Compile successful. Copying wordlists..."
cp -R wordlists build/cordle
echo "Build completed."
2025-12-18 12:12:24 +00:00
rm build/cordle-build.log # If build is good, we don't need this anymore.
else
echo "Something went wrong..."
cat build/cordle-build.log
2025-12-17 17:09:38 +00:00
fi