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.
chess/tests/add_new_white_to_black.sh

5 lines
291 B

# This gets all new text from W_test_boards.h and converts all W_ to B_ then appends it to B_test_boards.h
# The new file may have to be edited if there are Pawns,
diff="$(git diff W_test_boards.h | grep -e '^\+[^\+]' | sed 's/^\+//g' | sed 's/W_/B_/g')"
echo -e "$diff" >> B_test_boards.h