Add clap and update scripts

This commit is contained in:
stefiosif
2024-09-06 19:05:42 +03:00
parent 0815837cd5
commit 2081ddac56
6 changed files with 275 additions and 20 deletions

25
scripts/build_windows_bat.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
# Creating a .bat file to connect to cutechess GUI on windows
if ! cargo build --release --target x86_64-pc-windows-gnu; then
echo "cargo build failed"
exit 1
fi
BUILD_DIR="../target/x86_64-pc-windows-gnu/release"
if ! cd "$BUILD_DIR"; then
echo "failed to navigate to the build directory: $BUILD_DIR"
exit 1
fi
BAT_FILE_NAME="ippos.bat"
echo "ippos.exe -- --mode uci" > "$BAT_FILE_NAME"
echo "created ippos.bat in directory: $(pwd)"
if ! unix2dos "$BAT_FILE_NAME"; then
echo "failed to convert line endings for Windows"
exit 1
fi
echo "converted line endings for Windows successfully"

View File

@@ -1,5 +0,0 @@
#!/bin/sh
cargo build --release
./target/release/ippos perft

View File

@@ -1,5 +0,0 @@
#!/bin/sh
cargo build --release
./target/release/ippos uci