mirror of
https://github.com/containous/traefik.git
synced 2024-12-23 17:34:13 +03:00
143ea86ab9
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
32 lines
531 B
Bash
Executable File
32 lines
531 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# List of bundles to create when no argument is passed
|
|
DEFAULT_BUNDLES=(
|
|
validate-gofmt
|
|
validate-govet
|
|
generate
|
|
binary
|
|
|
|
test-unit
|
|
test-integration
|
|
)
|
|
|
|
bundle() {
|
|
local bundle="$1"; shift
|
|
echo "---> Making bundle: $(basename "$bundle") (in $DEST)"
|
|
source "script/$bundle" "$@"
|
|
}
|
|
|
|
if [ $# -lt 1 ]; then
|
|
bundles=(${DEFAULT_BUNDLES[@]})
|
|
else
|
|
bundles=($@)
|
|
fi
|
|
for bundle in ${bundles[@]}; do
|
|
export DEST=.
|
|
ABS_DEST="$(cd "$DEST" && pwd -P)"
|
|
bundle "$bundle"
|
|
echo
|
|
done
|