2 # This Makefile fragment is shared between fileutils, sh-utils, textutils.
5 if head ChangeLog| grep 'Version $(VERSION)' > /dev/null; then \
8 echo "$(VERSION) not in ChangeLog; not tagging" 1>&2; \
12 # $(MAKE) my-distcheck
14 # Tag before making distribution. Also, don't make a distribution if
15 # checks fail. Also, make sure the NEWS file is up-to-date.
16 # FIXME: use dist-hook/my-dist like distcheck-hook/my-distcheck.
17 cvs-dist: maintainer-check
18 pkg=`echo "$(PACKAGE)" | tr a-z A-Z`; \
19 ver=`echo "$(VERSION)" | sed 's/\./_/g'`; \
22 if cvs -n log -h README| grep -e $$tag: > /dev/null; then \
23 echo "VERSION not new; not tagging" 1>&2; \
34 GZIP=$(GZIP) $(TAR) -C $(t) -zxf $(distdir).tar.gz
36 && ./configure --with-gd=no --with-png=no --with-lisp-files --with-tutorial \
37 && $(MAKE) CFLAGS='-Wformat -Werror' \
41 cd $(t) && mv $(distdir) $(distdir).old \
42 && $(TAR) -zxf ../$(distdir).tar.gz
43 diff -ur $(t)/$(distdir).old $(t)/$(distdir)
45 @echo "========================"; \
46 echo "$(distdir).tar.gz is ready for distribution"; \
47 echo "========================"
49 THIS_VERSION_REGEXP = $(subst .,\.,$(VERSION))
50 # FIXME: this works only for Gnits-style test releases.
51 PREV_VERSION := $(shell echo $(VERSION)|tr a-z Xa-y)
52 PREV_VERSION_REGEXP := $(shell echo $(PREV_VERSION)|sed 's/\./\\./g')
54 url-host-prefix = ftp://ftp.ucc.ie/
55 url = $(url-host-prefix)/pub/gnuplot/$(distdir).tar.gz
56 md5 = $(shell md5sum < $(distdir).tar.gz|sed 's/ -//')
59 tarz=/tmp/rel-check-tarz-$$$$; \
60 md5_tmp=/tmp/rel-check-md5-$$$$; \
62 trap 'status=$$?; rm -f $$tarz $$md5_tmp; exit $$status' 0 1 2 3 15; \
63 wget -q --output-document=$$tarz $(url); \
64 echo "$(md5) -" > $$md5_tmp; \
65 md5sum -c $$md5_tmp < $$tarz
67 announcement: NEWS ChangeLog $(distdir).tar.gz
69 echo Subject: $(distdir) released; \
71 echo FIXME: put comments here; \
75 echo "$(md5) $(distdir).tar.gz"; \
78 sed -n "/$(THIS_VERSION_REGEXP)/,/$(PREV_VERSION_REGEXP)/p" NEWS \
81 echo ChangeLog entries:; \
82 sed -n "1,/$v $(PREV_VERSION_REGEXP)/p" \
88 $(MAKE) -s announcement > /tmp/announcement
89 ln $(distdir).tar.gz ../release
90 chmod a-w $(distdir).tar.gz
91 @echo =====================================
92 @echo 'ncftp -u $(url-host-prefix)/fs/share/ftp/gnu/fetish/'
93 @echo '# put $(distdir).tar.gz'
94 @echo '# send the /tmp/announcement e-mail'
95 @echo 'pot-mail $(distdir).tar.gz | bash'
96 @echo =====================================
99 for subdir in config demo m4 term tutorial ; do \
100 make -C $$subdir -f Makefile.am.in Makefile.am \