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-$$$$; \ |
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) |
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:; \ |
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 ===================================== |
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) |