summarylogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-06-08Upgrade to 2.30.1David Barri
2021-06-04Upgrade to 2.30.0David Barri
2021-05-20Upgrade to 2.29.0David Barri
2021-05-07Upgrade to 2.28.2David Barri
2021-04-23Add clean_downloads to aur-cfg.shDavid Barri
2021-04-23Use external aur scriptDavid Barri
2021-04-20Upgrade to 2.28.1David Barri
2021-04-20Reset pkgrelDavid Barri
2021-03-23Upgrade to 2.28.0David Barri
2021-03-21Add test-upgrade; remove commit 686d521a6cb2817b9631d818a1a233ac86722530David 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-21Add auto-updateDavid Barri
2021-02-26Upgrade to 2.27.1David Barri
2021-02-26Automate upgradesDavid Barri
2021-02-26Add _pkgver_suffixDavid Barri
2021-02-26Remove rpmextract as a makedepDavid Barri
2021-02-17Use rpm instead of appimageDavid Barri
* Starts much faster * Integrates with desktop app menus
2021-02-172.26.5David Barri