mirror of
https://github.com/jb55/nostril.git
synced 2024-11-24 08:59:08 -05:00
27 lines
350 B
Bash
27 lines
350 B
Bash
|
#!/bin/bash
|
||
|
mkdir -p build
|
||
|
pushd build
|
||
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||
|
cmake ..
|
||
|
cmake --build . --target configurator
|
||
|
pushd ext
|
||
|
pushd secp256k1
|
||
|
make
|
||
|
popd
|
||
|
popd
|
||
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||
|
cmake ..
|
||
|
pushd ext
|
||
|
pushd secp256k1
|
||
|
make
|
||
|
popd
|
||
|
popd
|
||
|
elif [[ "$OSTYPE" == "msys" ]]; then
|
||
|
cmake .. --fresh
|
||
|
fi
|
||
|
sleep 1
|
||
|
cmake --build .
|
||
|
popd
|
||
|
exit
|
||
|
|