summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-10-01 19:57:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-10-01 19:57:38 +0000
commit5f9d5e230cca40626957e0f213c4c72e72643059 (patch)
tree18a7bc03f2c0d54456a97622b9d47a3b1b4b8fb4 /Makefile
parentReleasing debian version 20211008-1. (diff)
downloadprogress-linux-5f9d5e230cca40626957e0f213c4c72e72643059.tar.xz
progress-linux-5f9d5e230cca40626957e0f213c4c72e72643059.zip
Merging upstream version 20221001.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile53
1 files changed, 40 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 030f4bb..a2c6379 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 2010-2021 Daniel Baumann <daniel.baumann@progress-linux.org>
+# Copyright (C) 2010-2022 Daniel Baumann <daniel.baumann@progress-linux.org>
#
# SPDX-License-Identifier: GPL-3.0+
#
@@ -13,11 +13,14 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
SHELL := sh -e
PROJECT := progress-linux
+SOFTWARE := progress-linux
+
+VERSION := $(shell cat VERSION.txt)
all: build
@@ -87,8 +90,8 @@ install: install-doc install-man install-pgp install-ssh
install-doc:
# install doc
- mkdir -p $(DESTDIR)/usr/share/doc/$(PROJECT)
- cp *.txt $(DESTDIR)/usr/share/doc/$(PROJECT)
+ mkdir -p $(DESTDIR)/usr/share/doc/$(SOFTWARE)
+ cp *.txt $(DESTDIR)/usr/share/doc/$(SOFTWARE)
install-man:
# install manpages
@@ -103,19 +106,19 @@ install-man:
install-pgp: build-pgp
# install pgp keyrings
- mkdir -p $(DESTDIR)/usr/share/$(PROJECT)/pgp-keys
- cp pgp-keys/*.gpg $(DESTDIR)/usr/share/$(PROJECT)/pgp-keys
+ mkdir -p $(DESTDIR)/usr/share/$(SOFTWARE)/pgp-keys
+ cp pgp-keys/*.gpg $(DESTDIR)/usr/share/$(SOFTWARE)/pgp-keys
install-ssh: build-ssh
# install ssh keyrings
- mkdir -p $(DESTDIR)/usr/share/$(PROJECT)/ssh-keys
- cp ssh-keys/*.pub $(DESTDIR)/usr/share/$(PROJECT)/ssh-keys
+ mkdir -p $(DESTDIR)/usr/share/$(SOFTWARE)/ssh-keys
+ cp ssh-keys/*.pub $(DESTDIR)/usr/share/$(SOFTWARE)/ssh-keys
uninstall: uninstall-doc uninstall-man uninstall-pgp uninstall-ssh
uninstall-doc:
# uninstall doc
- rm -rf $(DESTDIR)/usr/share/doc/$(PROJECT)
+ rm -rf $(DESTDIR)/usr/share/doc/$(SOFTWARE)
uninstall-man:
# uninstall manpages
@@ -130,12 +133,36 @@ uninstall-man:
uninstall-pgp:
# uninstall pgp keyrings
- rm -rf $(DESTDIR)/usr/share/$(PROJECT)/pgp-keys
- -rmdir --parents $(DESTDIR)/usr/share/$(PROJECT)
+ rm -rf $(DESTDIR)/usr/share/$(SOFTWARE)/pgp-keys
+ -rmdir --parents $(DESTDIR)/usr/share/$(SOFTWARE)
uninstall-ssh:
# uninstall ssh keyrings
- rm -rf $(DESTDIR)/usr/share/$(PROJECT)/ssh-keys
- -rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/$(PROJECT)
+ rm -rf $(DESTDIR)/usr/share/$(SOFTWARE)/ssh-keys
+ -rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/$(SOFTWARE)
reinstall: clean uninstall build install
+
+distclean: clean
+ rm -rf $(SOFTWARE)-$(VERSION)
+
+release: distclean
+ git commit -a -s -S -m 'Releasing version $(VERSION).' || true
+ git tag -s -m 'Tagging version $(VERSION).' v$(VERSION) || true
+
+ mkdir -p $(SOFTWARE)-$(VERSION)
+ find . -mindepth 1 -maxdepth 1 -and -not -name ".git*" -and -not -name debian -and -not -name $(SOFTWARE)-$(VERSION) -exec cp \-a {} $(SOFTWARE)-$(VERSION) \;
+
+ for FORMAT in xz lzip; \
+ do \
+ EXTENSION=$$(echo $${FORMAT} | cut -b-2); \
+ tar --$${FORMAT} -cf ../$(SOFTWARE)-$(VERSION).tar.$${EXTENSION} $(SOFTWARE)-$(VERSION); \
+ sha512sum ../$(SOFTWARE)-$(VERSION).tar.$${EXTENSION} > ../$(SOFTWARE)-$(VERSION).tar.$${EXTENSION}.sha512; \
+ gpg --default-key 0x3E6CA28DAAF8DD14 --armor -b ../$(SOFTWARE)-$(VERSION).tar.$${EXTENSION}; \
+ mv ../$(SOFTWARE)-$(VERSION).tar.$${EXTENSION}.asc ../$(SOFTWARE)-$(VERSION).tar.$${EXTENSION}.sig; \
+ done
+
+ rm -rf $(SOFTWARE)-$(VERSION)
+
+upload:
+ scp ../$(SOFTWARE)-$(VERSION).* get.progress-linux.org:/srv/get.progress-linux.org/packages/$(SOFTWARE)/upstream