From d859ad6c1735aa300d5fc56e1617c97414a14e9b Mon Sep 17 00:00:00 2001 From: Deluan Date: Fri, 11 Oct 2024 14:28:03 -0400 Subject: [PATCH] Better README --- Makefile | 7 ++++--- README.md | 8 ++++---- latest-version.sh | 4 ---- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 3cb3eff..8e3e562 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 1df6a04..52f8c86 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/latest-version.sh b/latest-version.sh index 3d49722..a96b078 100755 --- a/latest-version.sh +++ b/latest-version.sh @@ -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