From b35ba5f1c05bf6d9f9f79d29952f9ba953bb91b8 Mon Sep 17 00:00:00 2001 From: Daniel Ruiz de Alegría Date: Thu, 23 May 2019 15:16:59 +0200 Subject: Add launchpad automated release --- Makefile | 40 ++++++++++++++++++++------------ deb/flat-remix-1.89/debian/changelog | 5 ---- deb/flat-remix-1.89/debian/compat | 1 - deb/flat-remix-1.89/debian/control | 22 ------------------ deb/flat-remix-1.89/debian/install | 12 ---------- deb/flat-remix-1.89/debian/rules | 5 ---- deb/flat-remix/debian/changelog | 5 ++++ deb/flat-remix/debian/changelog-template | 4 ++++ deb/flat-remix/debian/compat | 1 + deb/flat-remix/debian/control | 22 ++++++++++++++++++ deb/flat-remix/debian/rules | 5 ++++ 11 files changed, 62 insertions(+), 60 deletions(-) delete mode 100644 deb/flat-remix-1.89/debian/changelog delete mode 100644 deb/flat-remix-1.89/debian/compat delete mode 100644 deb/flat-remix-1.89/debian/control delete mode 100644 deb/flat-remix-1.89/debian/install delete mode 100755 deb/flat-remix-1.89/debian/rules create mode 100644 deb/flat-remix/debian/changelog create mode 100644 deb/flat-remix/debian/changelog-template create mode 100644 deb/flat-remix/debian/compat create mode 100644 deb/flat-remix/debian/control create mode 100755 deb/flat-remix/debian/rules diff --git a/Makefile b/Makefile index 4d10a2d14..0574eef5f 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ PREFIX ?= /usr IGNORE ?= THEMES ?= $(patsubst %/index.theme,%,$(wildcard ./*/index.theme)) +PKGNAME = flat-remix +MAINTAINER = Daniel Ruiz de Alegría # 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 Thu, 25 Apr 2019 07:46:59 +0200 diff --git a/deb/flat-remix-1.89/debian/compat b/deb/flat-remix-1.89/debian/compat deleted file mode 100644 index ec635144f..000000000 --- a/deb/flat-remix-1.89/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/deb/flat-remix-1.89/debian/control b/deb/flat-remix-1.89/debian/control deleted file mode 100644 index b1771456e..000000000 --- a/deb/flat-remix-1.89/debian/control +++ /dev/null @@ -1,22 +0,0 @@ -Source: flat-remix -Section: misc -Priority: optional -Maintainer: Daniel Ruiz de Alegría -Build-Depends: debhelper (>= 9) -Homepage: https://drasite.com/flat-remix - -Package: flat-remix -Architecture: any -Description: Flat Remix ICON theme - Flat remix is a pretty simple icon theme inspired on material design following a modern design using "flat" colors with high contrasts and sharp borders. - . - Themes: - • Flat Remix: main theme - • Flat Remix Dark: for dark interfaces - • Flat Remix Light: for light interfaces - . - Folder variants: - • Blue Folders - • Green Folders - • Red Folders - • Yellow Folders 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-1.89/debian/rules b/deb/flat-remix-1.89/debian/rules deleted file mode 100755 index abde6ef22..000000000 --- a/deb/flat-remix-1.89/debian/rules +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/make -f - -%: - dh $@ - 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 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/debian/compat b/deb/flat-remix/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/deb/flat-remix/debian/compat @@ -0,0 +1 @@ +9 diff --git a/deb/flat-remix/debian/control b/deb/flat-remix/debian/control new file mode 100644 index 000000000..b1771456e --- /dev/null +++ b/deb/flat-remix/debian/control @@ -0,0 +1,22 @@ +Source: flat-remix +Section: misc +Priority: optional +Maintainer: Daniel Ruiz de Alegría +Build-Depends: debhelper (>= 9) +Homepage: https://drasite.com/flat-remix + +Package: flat-remix +Architecture: any +Description: Flat Remix ICON theme + Flat remix is a pretty simple icon theme inspired on material design following a modern design using "flat" colors with high contrasts and sharp borders. + . + Themes: + • Flat Remix: main theme + • Flat Remix Dark: for dark interfaces + • Flat Remix Light: for light interfaces + . + Folder variants: + • Blue Folders + • Green Folders + • Red Folders + • Yellow Folders diff --git a/deb/flat-remix/debian/rules b/deb/flat-remix/debian/rules new file mode 100755 index 000000000..abde6ef22 --- /dev/null +++ b/deb/flat-remix/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +%: + dh $@ + -- cgit v1.2.3