Skip to content

Commit

Permalink
Normalize some of the boilerplate in each of the build commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeda committed Oct 10, 2014
1 parent 7a2d8fd commit 428a653
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 30 deletions.
4 changes: 1 addition & 3 deletions build/copy-output.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
# This is a no-op on Linux when the Docker daemon is local. This is only
# necessary on Mac OS X with boot2docker.

set -e

source $(dirname $0)/common.sh
source $(dirname "${BASH_SOURCE}")/common.sh

kube::build::verify_prereqs
kube::build::copy_output
4 changes: 1 addition & 3 deletions build/make-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
# This makes the docker build image, builds the binaries and copies them out
# of the docker container.

set -e

source $(dirname $0)/common.sh
source $(dirname "${BASH_SOURCE}")/common.sh

kube::build::verify_prereqs
kube::build::build_image
Expand Down
4 changes: 1 addition & 3 deletions build/make-build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
# directory. It will then copy over the Dockerfile and build the kube-build
# image.

set -e

source $(dirname $0)/common.sh
source $(dirname "${BASH_SOURCE}")/common.sh

kube::build::verify_prereqs
kube::build::build_image
4 changes: 1 addition & 3 deletions build/make-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

# Clean out the output directory on the docker host.

set -e

source $(dirname $0)/common.sh
source $(dirname "${BASH_SOURCE}")/common.sh

kube::build::verify_prereqs
kube::build::clean_output
Expand Down
4 changes: 1 addition & 3 deletions build/make-cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
# This makes the docker build image, builds the cross binaries and copies them
# out of the docker container.

set -e

source $(dirname $0)/common.sh
source $(dirname "${BASH_SOURCE}")/common.sh

kube::build::verify_prereqs
kube::build::build_image
Expand Down
4 changes: 1 addition & 3 deletions build/make-run-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
# This script will make the 'run image' after building all of the necessary
# binaries.

set -e

source $(dirname $0)/common.sh
source $(dirname "${BASH_SOURCE}")/common.sh

kube::build::verify_prereqs
kube::build::build_image
Expand Down
4 changes: 1 addition & 3 deletions build/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
# images and other build artifacts. All intermediate artifacts will be hosted
# publicly on Google Cloud Storage currently.

set -e

source $(dirname $0)/common.sh
source $(dirname "${BASH_SOURCE}")/common.sh

kube::build::verify_prereqs
kube::build::build_image
Expand Down
4 changes: 1 addition & 3 deletions build/run-integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

# Run the integration test.

set -e

source $(dirname $0)/common.sh
source $(dirname "${BASH_SOURCE}")/common.sh

kube::build::verify_prereqs
kube::build::build_image
Expand Down
4 changes: 1 addition & 3 deletions build/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

# Run all of the golang unit tests.

set -e

source $(dirname $0)/common.sh
source $(dirname "${BASH_SOURCE}")/common.sh

kube::build::verify_prereqs
kube::build::build_image
Expand Down
4 changes: 1 addition & 3 deletions build/shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
#
# This container will have a snapshot of the current sources.

set -e

source $(dirname $0)/common.sh
source $(dirname "${BASH_SOURCE}")/common.sh

kube::build::verify_prereqs
kube::build::build_image
Expand Down

0 comments on commit 428a653

Please sign in to comment.