From 2cd7b543c4aba828d4962fdb8e333f5a4a931aea Mon Sep 17 00:00:00 2001 From: Deluan Date: Fri, 11 Oct 2024 14:28:03 -0400 Subject: [PATCH] Better README --- Makefile | 5 +++-- README.md | 8 ++++---- latest-version.sh | 4 ---- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 3cb3eff..0772e33 100644 --- a/Makefile +++ b/Makefile @@ -18,8 +18,9 @@ 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: 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