Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-02-03 | Upgrade to 2.38.0 | David Barri | |
2022-01-25 | Upgrade to 2.37.0 | David Barri | |
2022-01-18 | Upgrade to 2.36.0 | David Barri | |
2021-11-26 | Upgrade to 2.35.0 | David Barri | |
2021-11-18 | Upgrade to 2.34.2 | David Barri | |
2021-11-17 | Upgrade to 2.34.1 | David Barri | |
2021-11-04 | Upgrade to 2.34.0 | David Barri | |
2021-10-20 | Upgrade to 2.33.3 | David Barri | |
2021-09-30 | Upgrade to 2.33.2 | David Barri | |
2021-09-28 | Upgrade to 2.33.1 | David Barri | |
2021-09-22 | Upgrade to 2.33.0 | David Barri | |
2021-08-31 | Upgrade to 2.32.1 | David Barri | |
2021-08-11 | Upgrade to 2.32.0 | David Barri | |
2021-07-21 | Upgrade to 2.31.1 | David Barri | |
2021-07-08 | Upgrade to 2.31.0 | David Barri | |
2021-06-08 | Upgrade to 2.30.1 | David Barri | |
2021-06-04 | Upgrade to 2.30.0 | David Barri | |
2021-05-20 | Upgrade to 2.29.0 | David Barri | |
2021-05-07 | Upgrade to 2.28.2 | David Barri | |
2021-04-23 | Add clean_downloads to aur-cfg.sh | David Barri | |
2021-04-23 | Use external aur script | David Barri | |
2021-04-20 | Upgrade to 2.28.1 | David Barri | |
2021-04-20 | Reset pkgrel | David Barri | |
2021-03-23 | Upgrade to 2.28.0 | David Barri | |
2021-03-21 | Add test-upgrade; remove commit 686d521a6cb2817b9631d818a1a233ac86722530 | David Barri | |
Author: David Barri <japgolly@gmail.com> Date: Sun Mar 21 08:40:19 2021 +1100 Add auto-update diff --git a/Makefile b/Makefile index 5aba781..9492c8c 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,13 @@ -.PHONY: post clean upgrade versions +.PHONY: post clean upgrade versions auto-update +CURRENT_VER := $(shell grep '^pkgver' PKGBUILD | sed 's/.*=//') LATEST_VER_FULL := $(shell curl -s https://get.atomicwallet.io/download/ | grep 'atomicwallet-2.*\.rpm"' | sort | tail -1 | sed 's/.*wallet-\(2[0-9.-]*\)\.rpm.*/\1/') LATEST_VER := $(firstword $(subst -, ,$(LATEST_VER_FULL))) LATEST_VER_SUFFIX := $(lastword $(subst -, ,$(LATEST_VER_FULL))) versions: @echo "Current version:" - @grep '^pkgver' PKGBUILD | sed 's/.*=/ /' + @echo " $(CURRENT_VER)" @echo "Latest version:" @echo " $(LATEST_VER)" @@ -25,3 +26,10 @@ post: clean: git clean -fX + +auto-update: +ifeq ($(CURRENT_VER),$(LATEST_VER)) + @echo "No update available. Version: $(CURRENT_VER)" +else + @make upgrade && git push +endif | |||
2021-03-21 | Add auto-update | David Barri | |
2021-02-26 | Upgrade to 2.27.1 | David Barri | |
2021-02-26 | Automate upgrades | David Barri | |
2021-02-26 | Add _pkgver_suffix | David Barri | |
2021-02-26 | Remove rpmextract as a makedep | David Barri | |
2021-02-17 | Use rpm instead of appimage | David Barri | |
* Starts much faster * Integrates with desktop app menus | |||
2021-02-17 | 2.26.5 | David Barri | |