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