removed shim, godep files, which are unused in this setup
This commit is contained in:
parent
b76b1c6f97
commit
ef5a535b24
18
script/godep
18
script/godep
@ -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 "$@"
|
22
script/shim
22
script/shim
@ -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}" "$@"
|
Loading…
Reference in New Issue
Block a user