diff options
-rw-r--r-- | Makefile | 40 | ||||
-rw-r--r-- | deb/flat-remix-1.89/debian/changelog | 5 | ||||
-rw-r--r-- | deb/flat-remix-1.89/debian/install | 12 | ||||
-rw-r--r-- | deb/flat-remix/debian/changelog | 5 | ||||
-rw-r--r-- | deb/flat-remix/debian/changelog-template | 4 | ||||
-rw-r--r-- | deb/flat-remix/debian/compat (renamed from deb/flat-remix-1.89/debian/compat) | 0 | ||||
-rw-r--r-- | deb/flat-remix/debian/control (renamed from deb/flat-remix-1.89/debian/control) | 0 | ||||
-rwxr-xr-x | deb/flat-remix/debian/rules (renamed from deb/flat-remix-1.89/debian/rules) | 0 |
8 files changed, 34 insertions, 32 deletions
@@ -4,6 +4,8 @@ PREFIX ?= /usr IGNORE ?= THEMES ?= $(patsubst %/index.theme,%,$(wildcard ./*/index.theme)) +PKGNAME = flat-remix +MAINTAINER = Daniel Ruiz de Alegría <daniel@drasite.com> # excludes IGNORE from THEMES list THEMES := $(filter-out $(IGNORE), $(THEMES)) @@ -24,7 +26,7 @@ uninstall: -rm -rf $(foreach theme,$(THEMES),$(DESTDIR)$(PREFIX)/share/icons/$(theme)) _get_version: - $(eval VERSION := $(shell git show -s --format=%cd --date=format:%Y%m%d HEAD)) + $(eval VERSION ?= $(shell git show -s --format=%cd --date=format:%Y%m%d HEAD)) @echo $(VERSION) _get_tag: @@ -35,32 +37,40 @@ dist: _get_version git archive --format=tar.gz -o $(notdir $(CURDIR))-$(VERSION).tar.gz master -- $(THEMES) release: _get_version + $(MAKE) aur_release VERSION=$(VERSION) + $(MAKE) copr_release VERSION=$(VERSION) git tag -f $(VERSION) - $(MAKE) aur_release - $(MAKE) copr_release git push origin --tags -aur_release: _get_tag +aur_release: _get_version _get_tag cd aur; \ - sed "s/pkgver\s*=.*/pkgver=$(TAG)/" -i PKGBUILD .SRCINFO; \ - makepkg --printsrcinfo > .SRCINFO; \ - git commit -a -m "$(TAG)"; \ - git push origin; + sed "s/$(TAG)/$(VERSION)/g" -i PKGBUILD .SRCINFO; \ + git commit -a -m "Update aur version $(VERSION)"; \ + git push origin master; - git commit aur -m "$(TAG)" - git push origin + git commit aur -m "$(VERSION)" + git push origin master -copr_release: _get_tag - sed "s/Version:.*/Version: $(TAG)/" -i flat-remix.spec - git commit flat-remix.spec -m "Update flat-remix.spec version $(TAG)" - git push origin + $(MAKE) launchpad_release + +copr_release: _get_version _get_tag + sed "s/$(TAG)/$(VERSION)/g" -i $(PKGNAME).spec + git commit $(PKGNAME).spec -m "Update $(PKGNAME).spec version $(VERSION)" + git push origin master + +launchpad_release: _get_version _get_tag + cp -a Flat-Remix* Makefile deb/$(PKGNAME) + sed "s/$(TAG)/$(VERSION)/g" -i deb/$(PKGNAME)/debian/changelog-template + cd deb/$(PKGNAME)/debian/ && echo " -- $(MAINTAINER) $$(date -R)" | cat changelog-template - > changelog + cd deb/$(PKGNAME) && debuild -S -d + dput ppa deb/$(PKGNAME)_$(VERSION)_source.changes undo_release: _get_tag -git tag -d $(TAG) -git push --delete origin $(TAG) -.PHONY: $(THEMES) all install uninstall _get_version dist release undo_release +.PHONY: all install $(THEMES) uninstall _get_version _get_tag dist release aur_release copr_release launchpad_release undo_release # .BEGIN is ignored by GNU make so we can use it as a guard .BEGIN: diff --git a/deb/flat-remix-1.89/debian/changelog b/deb/flat-remix-1.89/debian/changelog deleted file mode 100644 index d68ce1031..000000000 --- a/deb/flat-remix-1.89/debian/changelog +++ /dev/null @@ -1,5 +0,0 @@ -flat-remix (1.89) disco; urgency=low - - * Release 1.89 - - -- Daniel Ruiz de Alegría <daniel@drasite.com> Thu, 25 Apr 2019 07:46:59 +0200 diff --git a/deb/flat-remix-1.89/debian/install b/deb/flat-remix-1.89/debian/install deleted file mode 100644 index 59eb9f8aa..000000000 --- a/deb/flat-remix-1.89/debian/install +++ /dev/null @@ -1,12 +0,0 @@ -Flat-Remix-Blue usr/share/icons/ -Flat-Remix-Blue-Dark usr/share/icons/ -Flat-Remix-Blue-Light usr/share/icons/ -Flat-Remix-Red usr/share/icons/ -Flat-Remix-Red-Dark usr/share/icons/ -Flat-Remix-Red-Light usr/share/icons/ -Flat-Remix-Green usr/share/icons/ -Flat-Remix-Green-Dark usr/share/icons/ -Flat-Remix-Green-Light usr/share/icons/ -Flat-Remix-Yellow usr/share/icons/ -Flat-Remix-Yellow-Dark usr/share/icons/ -Flat-Remix-Yellow-Light usr/share/icons/ diff --git a/deb/flat-remix/debian/changelog b/deb/flat-remix/debian/changelog new file mode 100644 index 000000000..cf6798f89 --- /dev/null +++ b/deb/flat-remix/debian/changelog @@ -0,0 +1,5 @@ +flat-remix (20190519) disco; urgency=low + + * Release 20190519 + + -- Daniel Ruiz de Alegría <daniel@drasite.com> Thu, 23 May 2019 15:08:57 +0200 diff --git a/deb/flat-remix/debian/changelog-template b/deb/flat-remix/debian/changelog-template new file mode 100644 index 000000000..8c4ee253e --- /dev/null +++ b/deb/flat-remix/debian/changelog-template @@ -0,0 +1,4 @@ +flat-remix (20190519) disco; urgency=low + + * Release 20190519 + diff --git a/deb/flat-remix-1.89/debian/compat b/deb/flat-remix/debian/compat index ec635144f..ec635144f 100644 --- a/deb/flat-remix-1.89/debian/compat +++ b/deb/flat-remix/debian/compat diff --git a/deb/flat-remix-1.89/debian/control b/deb/flat-remix/debian/control index b1771456e..b1771456e 100644 --- a/deb/flat-remix-1.89/debian/control +++ b/deb/flat-remix/debian/control diff --git a/deb/flat-remix-1.89/debian/rules b/deb/flat-remix/debian/rules index abde6ef22..abde6ef22 100755 --- a/deb/flat-remix-1.89/debian/rules +++ b/deb/flat-remix/debian/rules |