From ef5a535b244f7acfbb0e305686157aff4088942b Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Thu, 27 Oct 2016 12:02:08 +0200 Subject: [PATCH] removed shim, godep files, which are unused in this setup --- script/godep | 18 ------------------ script/shim | 22 ---------------------- 2 files changed, 40 deletions(-) delete mode 100755 script/godep delete mode 100755 script/shim diff --git a/script/godep b/script/godep deleted file mode 100755 index b6d37a5..0000000 --- a/script/godep +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -set -e - -PREVGOPATH=$GOPATH - -. script/bootstrap - -mkdir -p bin -bindir="$PWD"/bin - -# Put the GOPATH for the user before our fake one so we can run `godep save ./...` -if [ -n "$PREVGOPATH" ]; then - export GOPATH=$PREVGOPATH:$GOPATH -fi - -cd .gopath/src/github.com/github/gh-ost -godep "$@" diff --git a/script/shim b/script/shim deleted file mode 100755 index 95f3968..0000000 --- a/script/shim +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -set -e - -# This is a shim to sit in front of the binaries and load the appropriate -# environment variables for the environment set in GITBACKUPS_ENV - -# Default to staging for now -GITBACKUPS_ENV=${GITBACKUPS_ENV:-"staging"} - -# The base directory, which includes bin/ and whatever else once deployed -base=$(cd $(dirname $(dirname ${BASH_SOURCE[0]})) && pwd) - -if [ -f "${base}/.app-config/${GITBACKUPS_ENV}.sh" ]; then - source "${base}/.app-config/${GITBACKUPS_ENV}.sh" -fi - -# Now that we have the env variables to let the binary know where to put the -# data, switch into it -myname=$(basename "$0") - -exec "${base}/libexec/${myname}" "$@"