removed shim, godep files, which are unused in this setup

This commit is contained in:
Shlomi Noach 2016-10-27 12:02:08 +02:00
parent b76b1c6f97
commit ef5a535b24
2 changed files with 0 additions and 40 deletions

View File

@ -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 "$@"

View File

@ -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}" "$@"