Skip to content

Commit

Permalink
v0.2.1: update Makefile with new tool names (#17)
Browse files Browse the repository at this point in the history
* fix: update Makefile with new tool names

* docs: v0.2.1
  • Loading branch information
tobbee authored Jan 25, 2024
1 parent f1ad982 commit 2f00fbf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Nothing yet

## [0.2.1] - 2024-01-25

### Fixed

- Updated Makefile to new project names

## [0.2.0] - 2024-01-23

### Added
Expand All @@ -33,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- initial version of the repo
- ts-info tool

[Unreleased]: https://github.com/Eyevinn/mp2ts-tools/releases/tag/v0.2.0...HEAD
[v0.2.0]: https://github.com/Eyevinn/mp2ts-tools/releases/tag/v0.1.0...v0.2.0
[Unreleased]: https://github.com/Eyevinn/mp2ts-tools/releases/tag/v0.2.1...HEAD
[0.2.1]: https://github.com/Eyevinn/mp2ts-tools/releases/tag/v0.2.0...v0.2.1
[0.2.0]: https://github.com/Eyevinn/mp2ts-tools/releases/tag/v0.1.0...v0.2.0
[0.1.0]: https://github.com/Eyevinn/mp2ts-tools/releases/tag/v0.1.0
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
all: test check coverage build

.PHONY: build
build: ts-info
build: mp2ts-info mp2ts-nallister mp2ts-pslister

.PHONY: prepare
prepare:
go mod tidy

ts-info:
mp2ts-info mp2ts-nallister mp2ts-pslister:
go build -ldflags "-X github.com/Eyevinn/mp2ts-tools/internal.commitVersion=$$(git describe --tags HEAD) -X github.com/Eyevinn/mp2ts-tools/internal.commitDate=$$(git log -1 --format=%ct)" -o out/$@ ./cmd/$@/main.go

.PHONY: test
Expand All @@ -18,9 +18,7 @@ test: prepare
.PHONY: coverage
coverage:
# Ignore (allow) packages without any tests
set -o pipefail
go test ./... -coverprofile coverage.out
set +o pipefail
go tool cover -html=coverage.out -o coverage.html
go tool cover -func coverage.out -o coverage.txt
tail -1 coverage.txt
Expand Down
4 changes: 2 additions & 2 deletions internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
)

var (
commitVersion string = "v0.2.0" // May be updated using build flags
commitDate string = "1706026456" // commitDate in Epoch seconds (may be overridden using build flags)
commitVersion string = "v0.2.1" // May be updated using build flags
commitDate string = "1706176128" // commitDate in Epoch seconds (may be overridden using build flags)
)

// GetVersion - get version and also commitHash and commitDate if inserted via Makefile
Expand Down

0 comments on commit 2f00fbf

Please sign in to comment.