19 lines
463 B
Bash
Executable File
19 lines
463 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
#
|
|
mkdir -p build/cordle
|
|
|
|
echo "Building application."
|
|
gcc -std=c90 -pedantic -Wpedantic -Wall -Wextra -Wstrict-prototypes -Wold-style-definition
|
|
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
|