/[bison]/bison/Makefile.maint
ViewVC logotype

Diff of /bison/Makefile.maint

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by akim, Thu Oct 4 14:55:20 2001 UTC revision 1.8 by akim, Sun Oct 13 19:39:29 2002 UTC
# Line 251  my-distcheck: writable-files po-check Line 251  my-distcheck: writable-files po-check
251          echo "$(distdir).tar.gz is ready for distribution"; \          echo "$(distdir).tar.gz is ready for distribution"; \
252          echo "========================"          echo "========================"
253    
 # This must be the same name on both hosts.  
 # Make it a symlink that points to the right place.  
 real_dir = fetish-ftp  
   
 url_dir_list = $(foreach x,$(hosts),ftp://$($(x)_host)/$($(x)_url_dir))  
   
254  tgz-md5 = $(shell md5sum < $(my_distdir).tar.gz|sed 's/  -//')  tgz-md5 = $(shell md5sum < $(my_distdir).tar.gz|sed 's/  -//')
255  tgz-sha1 = $(shell sha1sum < $(my_distdir).tar.gz|sed 's/  -//')  tgz-sha1 = $(shell sha1sum < $(my_distdir).tar.gz|sed 's/  -//')
256  bz2-md5 = $(shell md5sum < $(my_distdir).tar.bz2|sed 's/  -//')  bz2-md5 = $(shell md5sum < $(my_distdir).tar.bz2|sed 's/  -//')
257  bz2-sha1 = $(shell sha1sum < $(my_distdir).tar.bz2|sed 's/  -//')  bz2-sha1 = $(shell sha1sum < $(my_distdir).tar.bz2|sed 's/  -//')
258  tgz-size = $(shell du --human $(my_distdir).tar.gz|sed 's/\([Mk]\).*/ \1B/')  xdelta-md5 = $(shell md5sum < $(xd-delta)|sed 's/  -//')
259  bz2-size = $(shell du --human $(my_distdir).tar.bz2|sed 's/\([Mk]\).*/ \1B/')  xdelta-sha1 = $(shell sha1sum < $(xd-delta)|sed 's/  -//')
260  xd-size = $(shell du --human $(xd-delta)|sed 's/\([Mk]\).*/ \1B/')  tgz-size = $(shell du --human $(my_distdir).tar.gz|sed 's/\([MkK]\).*/ \1B/')
261    bz2-size = $(shell du --human $(my_distdir).tar.bz2|sed 's/\([MkK]\).*/ \1B/')
262    xd-size = $(shell du --human $(xd-delta)|sed 's/\([MkK]\).*/ \1B/')
263    
264  rel-check:  rel-check:
265          tarz=/tmp/rel-check-tarz-$$$$; \          tarz=/tmp/rel-check-tarz-$$$$; \
# Line 277  rel-check: Line 273  rel-check:
273  prev-tgz = $(PACKAGE)-$(PREV_VERSION).tar.gz  prev-tgz = $(PACKAGE)-$(PREV_VERSION).tar.gz
274  xd-delta = $(PACKAGE)-$(PREV_VERSION)-$(VERSION).xdelta  xd-delta = $(PACKAGE)-$(PREV_VERSION)-$(VERSION).xdelta
275    
276  GZIP = gzip  news-r1 = /^[^ ].*$(THIS_VERSION_REGEXP)[]:]/
277  BZIP2 = bzip2  news-r2 = /^[^ ].*$(PREV_VERSION_REGEXP)[]:]/
 $(my_distdir).tar.bz2: $(my_distdir).tar.gz  
         $(GZIP) -dc $< > $(my_distdir).tar  
         rm -f $@  
         $(BZIP2) -9 $(my_distdir).tar  
278    
279  rel-files = $(xd-delta) $(distdir).tar.bz2 $(distdir).tar.gz  rel-files = $(xd-delta) $(distdir).tar.bz2 $(distdir).tar.gz
280  announcement: NEWS ChangeLog $(rel-files)  announcement: NEWS ChangeLog $(rel-files)
# Line 302  announcement: NEWS ChangeLog $(rel-files Line 294  announcement: NEWS ChangeLog $(rel-files
294              echo "  $$url/$(xd-delta)   ($(xd-size))"; \              echo "  $$url/$(xd-delta)   ($(xd-size))"; \
295            done; \            done; \
296            echo; \            echo; \
297            echo "Here are the MD5 and SHA1 signatures for the compressed tar files:"; \            echo "Here are the MD5 and SHA1 signatures:"; \
298            echo; \            echo; \
299            echo "$(tgz-md5)  $(my_distdir).tar.gz"; \            echo "$(tgz-md5)  $(my_distdir).tar.gz"; \
300            echo "$(bz2-md5)  $(my_distdir).tar.bz2"; \            echo "$(bz2-md5)  $(my_distdir).tar.bz2"; \
301              echo "$(xdelta-md5)  $(xd-delta)"; \
302            echo "$(tgz-sha1)  $(my_distdir).tar.gz"; \            echo "$(tgz-sha1)  $(my_distdir).tar.gz"; \
303            echo "$(bz2-sha1)  $(my_distdir).tar.bz2"; \            echo "$(bz2-sha1)  $(my_distdir).tar.bz2"; \
304              echo "$(xdelta-sha1)  $(xd-delta)"; \
305            echo; \            echo; \
306            echo NEWS:; \            echo NEWS:; \
307            sed -n "/$(THIS_VERSION_REGEXP)[]:]/,/$(PREV_VERSION_REGEXP)[]:]/p" NEWS \            sed -n "$(news-r1),$(news-r2)p" NEWS \
308              | grep -v '^\['; \              | grep -v '^\['; \
309            echo; \            echo; \
310            echo ChangeLog entries:; \            echo ChangeLog entries:; \
# Line 321  announcement: NEWS ChangeLog $(rel-files Line 315  announcement: NEWS ChangeLog $(rel-files
315                -e 'print "\n"."*"x70 ."\n"; s///; print; print "*"x70 ."\n"'; \                -e 'print "\n"."*"x70 ."\n"; s///; print; print "*"x70 ."\n"'; \
316          )          )
317    
318  define emit-rsync-commands  define emit-upload-commands
319          echo =====================================          echo =====================================
320          echo =====================================          echo =====================================
321          echo 'for host in $(a_host) $(b_host); do \'          echo upload $(PACKAGE) $(PREV_VERSION) $(VERSION)
         echo '  rsync -e ssh --pro -av $(xd-delta) $(my_distdir).tar.bz2 \'  
         echo '    $(my_distdir).tar.gz $$host:$(real_dir); done'  
322          echo '# send the /tmp/announcement e-mail'          echo '# send the /tmp/announcement e-mail'
323          echo =====================================          echo =====================================
324          echo =====================================          echo =====================================
# Line 343  alpha: Line 335  alpha:
335          chmod a-w $(rel-files)          chmod a-w $(rel-files)
336          echo $(VERSION) > $(prev_version_file)          echo $(VERSION) > $(prev_version_file)
337          $(CVS) ci -m. $(prev_version_file)          $(CVS) ci -m. $(prev_version_file)
338          @$(emit-rsync-commands)          @$(emit-upload-commands)

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26