mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
fix: generate-help-script
Binary path is different, need to adapt
This commit is contained in:
parent
4f76fe7be6
commit
7beb30ed18
2 changed files with 2 additions and 4 deletions
2
Makefile
2
Makefile
|
|
@ -24,7 +24,7 @@ static:
|
||||||
CGO_ENABLED=0 go build -ldflags=${LDFLAGS} -o $(OUT_DIR)/$(BIN) ./cmd/$(BIN)
|
CGO_ENABLED=0 go build -ldflags=${LDFLAGS} -o $(OUT_DIR)/$(BIN) ./cmd/$(BIN)
|
||||||
|
|
||||||
build:
|
build:
|
||||||
CGO_ENABLED=0 go build ./cmd/$(BIN)
|
CGO_ENABLED=0 go build -o $(OUT_DIR)/$(BIN) ./cmd/$(BIN)
|
||||||
|
|
||||||
install: static
|
install: static
|
||||||
@echo ">> copying $(BIN) into $(GOPATH)/bin/$(BIN)"
|
@echo ">> copying $(BIN) into $(GOPATH)/bin/$(BIN)"
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
BINARY_NAME=jb
|
BINARY_NAME=jb
|
||||||
GOOS=$(go env GOOS)
|
|
||||||
GOARCH=$(go env GOARCH)
|
|
||||||
|
|
||||||
HELP_FILE=$PWD/_output/help.txt
|
HELP_FILE=$PWD/_output/help.txt
|
||||||
echo "$ $BINARY_NAME -h" > $HELP_FILE
|
echo "$ $BINARY_NAME -h" > $HELP_FILE
|
||||||
$PWD/_output/$GOOS/$GOARCH/$BINARY_NAME 2>> $HELP_FILE
|
$PWD/_output/$BINARY_NAME 2>> $HELP_FILE
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue