19 lines
490 B
Bash
Executable File
19 lines
490 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
#
|
|
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
|
|
export RESULT=$?
|
|
|
|
if (( RESULT == 0 )); then
|
|
echo "Compile successful. Copying wordlists..."
|
|
cp -R wordlists build/cordle
|
|
echo "Build completed."
|
|
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
|
|
fi
|