fork/wezterm

git clone https://git.julia.blue/fork/wezterm

Wez FurlongAdd vendored cairo-sys-rs crate58a2a3062

termiz-0.23.2
5.0 KiB143 linesraw
1SUBDIRS = pixman demos test
2
3pkgconfigdir=$(libdir)/pkgconfig
4pkgconfig_DATA=pixman-1.pc
5
6$(pkgconfig_DATA): pixman-1.pc.in
7
8snapshot:
9	distdir="$(distdir)-`date '+%Y%m%d'`"; \
10	test -d "$(srcdir)/.git" && distdir=$$distdir-`cd "$(srcdir)" && git rev-parse HEAD | cut -c 1-6`; \
11	$(MAKE) $(AM_MAKEFLAGS) distdir="$$distdir" dist
12
13GPGKEY=3892336E
14USERNAME=$$USER
15RELEASE_OR_SNAPSHOT = $$(if test "x$(PIXMAN_VERSION_MINOR)" = "x$$(echo "$(PIXMAN_VERSION_MINOR)/2*2" | bc)" ; then echo release; else echo snapshot; fi)
16RELEASE_CAIRO_HOST =	$(USERNAME)@cairographics.org
17RELEASE_CAIRO_DIR =	/srv/cairo.freedesktop.org/www/$(RELEASE_OR_SNAPSHOT)s
18RELEASE_CAIRO_URL = 	https://cairographics.org/$(RELEASE_OR_SNAPSHOT)s
19RELEASE_XORG_URL =	https://www.x.org/releases/individual/lib
20RELEASE_XORG_HOST =	$(USERNAME)@xorg.freedesktop.org
21RELEASE_XORG_DIR =	/srv/xorg.freedesktop.org/archive/individual/lib
22RELEASE_ANNOUNCE_LIST = cairo-announce@cairographics.org, xorg-announce@lists.freedesktop.org, pixman@lists.freedesktop.org
23
24EXTRA_DIST =				\
25	Makefile.win32			\
26	Makefile.win32.common		\
27	meson.build			\
28	meson_options.txt		\
29	neon-test.S			\
30	a64-neon-test.S			\
31	arm-simd-test.S			\
32	$(NULL)
33
34tar_gz = $(PACKAGE)-$(VERSION).tar.gz
35tar_xz = $(PACKAGE)-$(VERSION).tar.xz
36
37sha512_tgz = $(tar_gz).sha512
38sha256_tgz = $(tar_gz).sha256
39
40sha512_txz = $(tar_xz).sha512
41sha256_txz = $(tar_xz).sha256
42
43gpg_file = $(sha512_tgz).asc
44
45$(sha512_tgz): $(tar_gz)
46	sha512sum $^ > $@
47
48$(sha256_tgz): $(tar_gz)
49	sha256sum $^ > $@
50
51$(sha512_txz): $(tar_xz)
52	sha512sum $^ > $@
53
54$(sha256_txz): $(tar_xz)
55	sha256sum $^ > $@
56
57$(gpg_file): $(sha512_tgz)
58	@echo "Please enter your GPG password to sign the checksum."
59	gpg --armor --sign $^ 
60
61HASHFILES = $(sha512_tgz) $(sha512_txz) $(sha256_tgz) $(sha256_txz)
62
63release-verify-newer:
64	@echo -n "Checking that no $(VERSION) release already exists at $(RELEASE_XORG_HOST)..."
65	@ssh $(RELEASE_XORG_HOST) test ! -e $(RELEASE_XORG_DIR)/$(tar_gz) \
66		|| (echo "Ouch." && echo "Found: $(RELEASE_XORG_HOST):$(RELEASE_XORG_DIR)/$(tar_gz)" \
67		&& echo "Refusing to try to generate a new release of the same name." \
68		&& false)
69	@ssh $(RELEASE_CAIRO_HOST) test ! -e $(RELEASE_CAIRO_DIR)/$(tar_gz) \
70		|| (echo "Ouch." && echo "Found: $(RELEASE_CAIRO_HOST):$(RELEASE_CAIRO_DIR)/$(tar_gz)" \
71		&& echo "Refusing to try to generate a new release of the same name." \
72		&& false)
73	@echo "Good."
74
75release-remove-old:
76	$(RM) $(tar_gz) $(tar_xz) $(HASHFILES) $(gpg_file)
77
78ensure-prev:
79	@if [ "$(PREV)" = "" ]; then							\
80		echo ""							          &&	\
81		echo "You must set the PREV variable on the make command line to" &&	\
82		echo "the last version."				  	  &&	\
83		echo ""								  &&	\
84		echo "For example:"						  &&	\
85		echo "      make PREV=0.7.3"				  	  &&	\
86		echo ""								  &&	\
87		false;									\
88	fi
89
90release-check: ensure-prev release-verify-newer release-remove-old distcheck
91
92release-tag:
93	git tag -u $(GPGKEY) -m "$(PACKAGE) $(VERSION) release" $(PACKAGE)-$(VERSION)
94
95release-upload: release-check $(tar_gz) $(tar_xz) $(sha512_tgz) $(sha512_txz) $(sha256_tgz) $(gpg_file)
96	scp $(tar_gz) $(sha512_tgz) $(gpg_file) $(RELEASE_CAIRO_HOST):$(RELEASE_CAIRO_DIR)
97	scp $(tar_gz) $(tar_xz) $(RELEASE_XORG_HOST):$(RELEASE_XORG_DIR)
98	ssh $(RELEASE_CAIRO_HOST) "rm -f $(RELEASE_CAIRO_DIR)/LATEST-$(PACKAGE)-[0-9]* && ln -s $(tar_gz) $(RELEASE_CAIRO_DIR)/LATEST-$(PACKAGE)-$(VERSION)"
99
100RELEASE_TYPE = $$(if test "x$(PIXMAN_VERSION_MINOR)" = "x$$(echo "$(PIXMAN_VERSION_MINOR)/2*2" | bc)" ; then echo "stable release in the" ; else echo "development snapshot leading up to a stable"; fi)
101
102release-publish-message: $(HASHFILES) ensure-prev
103	@echo "Please follow the instructions in RELEASING to push stuff out and"
104	@echo "send out the announcement mails.  Here is the excerpt you need:"
105	@echo ""
106	@echo "Lists:  $(RELEASE_ANNOUNCE_LIST)"
107	@echo "Subject: [ANNOUNCE] $(PACKAGE) release $(VERSION) now available"
108	@echo "============================== CUT HERE =============================="
109	@echo "A new $(PACKAGE) release $(VERSION) is now available. This is a $(RELEASE_TYPE)"
110	@echo ""
111	@echo "tar.gz:"
112	@echo "	$(RELEASE_CAIRO_URL)/$(tar_gz)"
113	@echo "	$(RELEASE_XORG_URL)/$(tar_gz)"
114	@echo ""
115	@echo "tar.xz:"
116	@echo "	$(RELEASE_XORG_URL)/$(tar_xz)"
117	@echo ""
118	@echo "Hashes:"
119	@echo -n "	SHA256: "
120	@cat $(sha256_tgz)
121	@echo -n "	SHA256: "
122	@cat $(sha256_txz)
123	@echo -n "	SHA512: "
124	@cat $(sha512_tgz)
125	@echo -n "	SHA512: "
126	@cat $(sha512_txz)
127	@echo ""
128	@echo "GPG signature:"
129	@echo "	$(RELEASE_CAIRO_URL)/$(gpg_file)"
130	@echo "	(signed by`gpg --list-keys $(GPGKEY) | grep uid | cut -b4- | tr -s " "`)"
131	@echo ""
132	@echo "Git:"
133	@echo "	https://gitlab.freedesktop.org/pixman/pixman.git"
134	@echo "	tag: $(PACKAGE)-$(VERSION)"
135	@echo ""
136	@echo "Log:"
137	@git log --no-merges "$(PACKAGE)-$(PREV)".."$(PACKAGE)-$(VERSION)" | git shortlog | awk '{ printf "\t"; print ; }' | cut -b1-80
138	@echo "============================== CUT HERE =============================="
139	@echo ""
140
141release-publish: release-upload release-tag release-publish-message
142
143.PHONY: release-upload release-publish release-publish-message release-tag