Skip to content

Commit

Permalink
Better README
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Oct 11, 2024
1 parent 308564b commit d859ad6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ dist: build
.PHONY: dist

update:
./latest-version.sh > .version
git diff .version
@./latest-version.sh > .version
@git diff .version
@if [ -z "`git status -s .version`" ]; then echo "No changes. Latest is still $(TAGLIB_VERSION)"; fi
.PHONY: update

release:
@if [[ ! "${v}" =~ ^[0-9]+\.[0-9]+\.[0-9]+-[0-9]+.*$$ ]]; then echo "Usage: make release V=X.X.X-Y"; exit 1; fi
@if [[ ! "${v}" =~ ^[0-9]+\.[0-9]+\.[0-9]+-[0-9]+.*$$ ]]; then echo "Usage: make release v=X.X.X-Y"; exit 1; fi
git tag v${v}
git push origin v${v}
.PHONY: release
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ the `make build` command with the `PLATFORMS` variable set to the desired platfo

### Tasks

- `make build` - Will build for all supported platforms
- `make build PLATFORMS=linux/amd64,darwin/arm64` - Will build for specific platforms
- `make update` - Will update the TagLib version in the `.version` file. After updating, you should build locally to
ensure everything is working, and then commit and push the changes.
- `make build` - Build for all supported platforms
- `make build PLATFORMS=linux/amd64,darwin/arm64` - Build for specific platforms
- `make update` - Update the TagLib version in the `.version` file. After updating, you should build locally to
ensure everything is working, and then commit and push the changed `.version` file.

### Release

Expand Down
4 changes: 0 additions & 4 deletions latest-version.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/bin/zsh

source .version

# Latest TagLib version
# GitHub repository in the format OWNER/REPO
REPO="taglib/taglib"

# GitHub API URL for fetching tags
Expand Down

0 comments on commit d859ad6

Please sign in to comment.