cordle/build.sh

19 lines
490 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 -v -std=c90 -pedantic -Wpedantic -o build/cordle/cordle src/*.c -Iinclude -lncurses > build/cordle-build.log 2>&1
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