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."
|
2026-01-26 20:55:11 +00:00
|
|
|
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.
|
2025-12-18 10:03:02 +00:00
|
|
|
else
|
|
|
|
|
echo "Something went wrong..."
|
|
|
|
|
cat build/cordle-build.log
|
2025-12-17 17:09:38 +00:00
|
|
|
fi
|