fix makefile

This commit is contained in:
c9s 2022-03-15 21:54:18 +08:00
parent e4c8db8287
commit 1f1ee7b986
3 changed files with 7 additions and 5 deletions

View File

@ -129,14 +129,16 @@ pkg/version/dev.go: .FORCE
BUILD_FLAGS="!release" VERSION_SUFFIX="-dev" bash utils/generate-version-file.sh > $@ BUILD_FLAGS="!release" VERSION_SUFFIX="-dev" bash utils/generate-version-file.sh > $@
dev-version: pkg/version/dev.go dev-version: pkg/version/dev.go
git add $<
git commit $< -m "update dev build version" git commit $< -m "update dev build version"
cmd-doc: .FORCE cmd-doc: .FORCE
go run ./cmd/update-doc go run ./cmd/update-doc
git add -v doc/commands git add -v doc/commands
git commit -m "update command doc files" doc/commands git commit -m "update command doc files" doc/commands || true
version: pkg/version/version.go pkg/version/dev.go migrations cmd-doc version: pkg/version/version.go pkg/version/dev.go migrations cmd-doc
git add $< $(word 2,$^)
git commit $< $(word 2,$^) -m "bump version to $(VERSION)" || true git commit $< $(word 2,$^) -m "bump version to $(VERSION)" || true
[[ -e doc/release/$(VERSION).md ]] || (echo "file doc/release/$(VERSION).md does not exist" ; exit 1) [[ -e doc/release/$(VERSION).md ]] || (echo "file doc/release/$(VERSION).md does not exist" ; exit 1)
git add -v doc/release/$(VERSION).md && git commit doc/release/$(VERSION).md -m "add $(VERSION) release note" || true git add -v doc/release/$(VERSION).md && git commit doc/release/$(VERSION).md -m "add $(VERSION) release note" || true

View File

@ -2,7 +2,7 @@
package version package version
const Version = "v1.28.0-fdfe6bc5-dev" const Version = "v1.28.0-e4c8db82-dev"
const VersionGitRef = "fdfe6bc5" const VersionGitRef = "e4c8db82"

View File

@ -2,7 +2,7 @@
package version package version
const Version = "v1.28.0-fdfe6bc5" const Version = "v1.28.0-e4c8db82"
const VersionGitRef = "fdfe6bc5" const VersionGitRef = "e4c8db82"