18 lines
336 B
Bash
18 lines
336 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
n2n_root="${1:?n2n source path is required}"
|
|
make_bin="${2:?MinGW make path is required}"
|
|
clean="${3:-0}"
|
|
|
|
cd "$n2n_root"
|
|
if [[ ! -f config.mak || ! -f include/config.h ]]; then
|
|
./scripts/hack_fakeautoconf.sh
|
|
fi
|
|
|
|
if [[ "$clean" == "1" ]]; then
|
|
"$make_bin" clean
|
|
fi
|
|
|
|
"$make_bin" edge supernode
|