forked from linkerd/linkerd
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make build scripts location-agnostic (linkerd#409)
The build scripts assume they are executed from the root of this repo. This prevents running scripts from other locations, for example, `cd web && ../bin/go-run .`. Modify the build scripts to work regardless of current directory. Fixes linkerd#301 Signed-off-by: Andrew Seigner <siggy@buoyant.io>
- Loading branch information
Showing
26 changed files
with
158 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
#!/bin/sh | ||
# | ||
# gcp -- mostly for CI | ||
# | ||
|
||
set -eu | ||
|
||
get_k8s_ctx() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#!/bin/sh | ||
|
||
set -eu | ||
|
||
# build debug logging is disabled by default; enable with BUILD_DEBUG=1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
bindir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
rootdir="$( cd $bindir/.. && pwd )" | ||
|
||
system=$(uname -s) | ||
|
||
if [ "$system" = "Darwin" ]; then | ||
bin=target/cli/darwin/conduit | ||
bin=$rootdir/target/cli/darwin/conduit | ||
elif [ "$system" = "Linux" ]; then | ||
bin=target/cli/linux/conduit | ||
bin=$rootdir/target/cli/linux/conduit | ||
else | ||
echo "unknown system: $system" >&2 | ||
exit 1 | ||
fi | ||
|
||
# build conduit executable if it does not exist | ||
if [ ! -f $bin ]; then | ||
bin/docker-build-cli-bin >/dev/null | ||
$bindir/docker-build-cli-bin >/dev/null | ||
fi | ||
|
||
exec $bin "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.