blob: a24cd3f1e2dd1440ce418027fffc272c95999d89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env bash
set -eo pipefail
cd "$(dirname "$0")"
if [[ -f main ]]; then
have_main=1
mv main .compile_ai_main_bak
fi
make AI="$1" -W main.cpp
mv main "$1"
if [[ $have_main -eq 1 ]]; then
mv .compile_ai_main_bak main
fi
|