You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
493 B
19 lines
493 B
#!/bin/bash
|
|
|
|
SCRIPTLINK=$(readlink -f "$0")
|
|
SCRIPTPATH="$( cd "$(dirname "$SCRIPTLINK")" >/dev/null 2>&1 ; pwd -P )"
|
|
|
|
#dotnet run --project "$SCRIPTPATH/generator" -o "$SCRIPTPATH/file.h" "$@" || exit 1
|
|
$SCRIPTPATH/generator -o "$SCRIPTPATH/file.h" "$@" || exit 1
|
|
|
|
|
|
[[ -f "$SCRIPTPATH/file.h" ]] || exit 1
|
|
|
|
echo "Compiling binary..."
|
|
|
|
g++ -I$SCRIPTPATH/include/ -w --std=c++17 "$SCRIPTPATH/main.cpp" "$SCRIPTPATH/sha256_literal/sha256.cpp" -o sfexec
|
|
|
|
rm "$SCRIPTPATH/file.h"
|
|
|
|
echo "Complete."
|