mirror of
https://github.com/aljazceru/nigiri.git
synced 2026-01-10 18:14:26 +01:00
* added Makefile * updated travis for makefile * fixed travis * fixed travis 2 * updated documentation for makefile
24 lines
425 B
Bash
Executable File
24 lines
425 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
PARENT_PATH=$(dirname $(cd $(dirname $0); pwd -P))
|
|
|
|
pushd $PARENT_PATH
|
|
|
|
case $(uname -s) in
|
|
Darwin) OS="darwin";;
|
|
Linux) OS="linux";;
|
|
*) echo "OS $OS not supported"; exit 1;;
|
|
esac
|
|
|
|
case $(uname -m) in
|
|
amd64) ARCH="amd64";;
|
|
x86_64) ARCH="amd64";;
|
|
*) echo "Architecture $ARCH not supported"; exit 1;;
|
|
esac
|
|
|
|
./build/nigiri-$OS-$ARCH stop --delete &>/dev/null
|
|
rm -rf build vendor ~/.nigiri
|
|
|
|
popd |