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.
sfexec/sfexec-create

19 lines
493 B

5 years ago
#!/bin/bash
SCRIPTLINK=$(readlink -f "$0")
SCRIPTPATH="$( cd "$(dirname "$SCRIPTLINK")" >/dev/null 2>&1 ; pwd -P )"
5 years ago
#dotnet run --project "$SCRIPTPATH/generator" -o "$SCRIPTPATH/file.h" "$@" || exit 1
$SCRIPTPATH/generator -o "$SCRIPTPATH/file.h" "$@" || exit 1
5 years ago
[[ -f "$SCRIPTPATH/file.h" ]] || exit 1
echo "Compiling binary..."
5 years ago
g++ -I$SCRIPTPATH/include/ -w --std=c++20 "$SCRIPTPATH/main.cpp" "$SCRIPTPATH/sha256_literal/sha256.cpp" -o sfexec
5 years ago
rm "$SCRIPTPATH/file.h"
echo "Complete."