mirrored from git://anongit.freedesktop.org/gstreamer/common
-
Notifications
You must be signed in to change notification settings - Fork 13
/
release.mak
45 lines (41 loc) · 2.07 KB
/
release.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# include this snippet to add a common release: target by using
# include $(top_srcdir)/common/release.mak
release: dist
@$(MAKE) $(PACKAGE)-$(VERSION).tar.xz.sha256sum
@echo
@echo "================================================================================================="
@echo "http://gstreamer.freedesktop.org/src/$(PACKAGE)/$(PACKAGE)-$(VERSION).tar.xz"
@cat $(PACKAGE)-$(VERSION).tar.xz.sha256sum
@echo "================================================================================================="
@if [ -d ~/releases/ ]; then \
cp -v $(PACKAGE)-$(VERSION).tar.xz ~/releases/; \
fi
@if [ -d ../www/data/src ]; then \
mv -v $(PACKAGE)-$(VERSION).tar.xz ../www/data/src/$(PACKAGE)/ ; \
mv -v $(PACKAGE)-$(VERSION).tar.xz.sha256sum ../www/data/src/$(PACKAGE)/ ; \
elif [ -d ../../www/data/src ]; then \
mv -v $(PACKAGE)-$(VERSION).tar.xz ../../www/data/src/$(PACKAGE)/ ; \
mv -v $(PACKAGE)-$(VERSION).tar.xz.sha256sum ../../www/data/src/$(PACKAGE)/ ; \
fi
@echo "================================================================================================="
# generate sha256 sum files
%.sha256sum: %
@sha256sum $< > $@
# check that no marshal or enumtypes files are included
# this in turn ensures that distcheck fails for missing .list files which is currently
# shadowed when the corresponding .c and .h files are included.
distcheck-hook:
@test "x" = "x`find $(distdir) -name \*-enumtypes.[ch] | grep -v win32`" && \
test "x" = "x`find $(distdir) -name \*-marshal.[ch]`" || \
( echo "*** Leftover enumtypes or marshal files in the tarball." && \
echo "*** Make sure the following files are not disted:" && \
find $(distdir) -name \*-enumtypes.[ch] | grep -v win32 && \
find $(distdir) -name \*-marshal.[ch] && \
false )
dist-hook:
@if test -f meson.build && ! $(GREP) -e "version.*'$(VERSION)'" meson.build >/dev/null ; then \
echo "*******************************************************"; \
echo "* meson.build needs to be updated for version $(VERSION)"; \
echo "*******************************************************"; \
false; \
fi