From 7b6051311a55e5dd57671db1f403f56b72b29b18 Mon Sep 17 00:00:00 2001 From: anonimal Date: Wed, 19 Apr 2017 02:34:53 +0000 Subject: [PATCH] Kovri: remove installer (moved to Kovri repo) This was moved to the Kovri repo in monero-project/kovri#583 --- kovri/install.sh | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100755 kovri/install.sh diff --git a/kovri/install.sh b/kovri/install.sh deleted file mode 100755 index 12dd1b5..0000000 --- a/kovri/install.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -# TODO(unassigned): /bin/sh isn't smart enough - -# Trivial script to install binary/resources using the makeself installer -# Not to substitute real packaging (this is meant for nightly/branch-tip builds) - -case "$OSTYPE" in - linux*) - _data="$HOME/.kovri" - _path="$HOME/.bin" - ;; - darwin*) - _data="$HOME/Library/Application Support/Kovri" - _path="$HOME/Library/Desktop" - ;; - freebsd*) - _data="$HOME/.kovri" - _path="$HOME/bin" - ;; - msys) - _data="$APPDATA\\Kovri" - _path="$HOMEPATH\\Desktop" - ;; - *) - echo "Unsupported platform" - exit 1 - ;; -esac - -_backup="${_data}-$(date +%Y.%m.%d)" # TODO(anonimal): we'll probably want to backup using revision hash -_binary="kovri" - -# Create bin dir if needed -[ ! -d "$_path" ] && mkdir "$_path" - -# Create backup if needed -[ -d "$_data" ] && mv "$_data" "$_backup" && [ -f "${_path}/${_binary}" ] && mv "${_path}/${_binary}" "$_backup" - -# Move resources -mkdir "$_data" && mv $(ls -A . | grep -v $(basename "$0")) "$_data" && mv "${_data}/${_binary}" "$_path" - -if [ $? -ne 0 ]; then - echo "Failed to install. See above error messages" - exit 1 -fi - -echo "Kovri binary '$_binary' is in $_path" -echo "Consider adding $_path to your \$PATH"