347 |
echo "$(distdir).tar.gz is ready for distribution"; \ |
echo "$(distdir).tar.gz is ready for distribution"; \ |
348 |
echo "========================" |
echo "========================" |
349 |
|
|
350 |
|
WGET = wget |
351 |
|
WGETFLAGS = -C off |
352 |
|
|
353 |
tgz-md5 = $(shell md5sum < $(my_distdir).tar.gz|sed 's/ -//') |
tgz-md5 = $(shell md5sum < $(my_distdir).tar.gz|sed 's/ -//') |
354 |
tgz-sha1 = $(shell sha1sum < $(my_distdir).tar.gz|sed 's/ -//') |
tgz-sha1 = $(shell sha1sum < $(my_distdir).tar.gz|sed 's/ -//') |
355 |
bz2-md5 = $(shell md5sum < $(my_distdir).tar.bz2|sed 's/ -//') |
bz2-md5 = $(shell md5sum < $(my_distdir).tar.bz2|sed 's/ -//') |
365 |
md5_tmp=/tmp/rel-check-md5-$$$$; \ |
md5_tmp=/tmp/rel-check-md5-$$$$; \ |
366 |
set -e; \ |
set -e; \ |
367 |
trap 'status=$$?; rm -f $$tarz $$md5_tmp; exit $$status' 0 1 2 3 15; \ |
trap 'status=$$?; rm -f $$tarz $$md5_tmp; exit $$status' 0 1 2 3 15; \ |
368 |
wget -q --output-document=$$tarz $(url); \ |
$(WGET) $(WGETFLAGS) -q --output-document=$$tarz $(url); \ |
369 |
echo "$(md5) -" > $$md5_tmp; \ |
echo "$(md5) -" > $$md5_tmp; \ |
370 |
md5sum -c $$md5_tmp < $$tarz |
md5sum -c $$md5_tmp < $$tarz |
371 |
|
|
394 |
## Updating files. ## |
## Updating files. ## |
395 |
## ---------------- ## |
## ---------------- ## |
396 |
|
|
|
WGET = wget |
|
397 |
ftp-gnu = ftp://ftp.gnu.org/gnu |
ftp-gnu = ftp://ftp.gnu.org/gnu |
398 |
www-gnu = http://www.gnu.org |
www-gnu = http://www.gnu.org |
399 |
|
|
420 |
tmppo=/tmp/$(PACKAGE)-$(VERSION)-po &&\ |
tmppo=/tmp/$(PACKAGE)-$(VERSION)-po &&\ |
421 |
rm -rf $$tmppo && \ |
rm -rf $$tmppo && \ |
422 |
mkdir $$tmppo && \ |
mkdir $$tmppo && \ |
423 |
(cd $$tmppo && $(WGET) -r -l1 -nd --no-parent -A '*.po' $(po_repo)) &&\ |
(cd $$tmppo && \ |
424 |
|
$(WGET) $(WGETFLAGS) -r -l1 -nd --no-parent -A '*.po' $(po_repo)) &&\ |
425 |
cp $$tmppo/*.po po |
cp $$tmppo/*.po po |
426 |
cd po && $(MAKE) update-po |
cd po && $(MAKE) update-po |
427 |
$(MAKE) po-check |
$(MAKE) po-check |
438 |
# The following pseudo table associates a local directory and a URL |
# The following pseudo table associates a local directory and a URL |
439 |
# with each of the files that belongs to some other package and is |
# with each of the files that belongs to some other package and is |
440 |
# regularly updated from the specified URL. |
# regularly updated from the specified URL. |
441 |
wget_files ?= $(srcdir)/config/config.guess \ |
wget_files ?= \ |
442 |
$(srcdir)/config/config.sub \ |
$(srcdir)/config/config.guess \ |
443 |
$(srcdir)/src/ansi2knr.c \ |
$(srcdir)/config/config.sub \ |
444 |
$(srcdir)/config/texinfo.tex |
$(srcdir)/config/texinfo.tex \ |
445 |
|
$(srcdir)/src/ansi2knr.c |
446 |
|
|
447 |
get-targets = $(patsubst %, get-%, $(wget_files)) |
get-targets = $(patsubst %, get-%, $(wget_files)) |
448 |
|
|
449 |
config.guess-url_prefix = $(ftp-gnu)/config/ |
config.guess-url_prefix = $(ftp-gnu)/config/ |
461 |
|
|
462 |
.PHONY: $(get-targets) |
.PHONY: $(get-targets) |
463 |
$(get-targets): |
$(get-targets): |
464 |
$(WGET) $(url) -O $(target).t \ |
$(WGET) $(WGETFLAGS) $(url) -O $(target).t \ |
465 |
&& $(move_if_change) $(target).t $(target) |
&& $(move_if_change) $(target).t $(target) |
466 |
|
|
467 |
cvs_files ?= $(srcdir)/config/depcomp $(srcdir)/config/missing \ |
cvs_files ?= \ |
468 |
$(srcdir)/config/mkinstalldirs \ |
$(srcdir)/config/depcomp \ |
469 |
$(srcdir)/config/install-sh $(srcdir)/src/ansi2knr.c |
$(srcdir)/config/install-sh \ |
470 |
|
$(srcdir)/config/missing \ |
471 |
|
$(srcdir)/config/mkinstalldirs \ |
472 |
|
$(srcdir)/src/ansi2knr.c |
473 |
automake_repo=:pserver:anoncvs:anoncvs@sources.redhat.com:/cvs/automake |
automake_repo=:pserver:anoncvs:anoncvs@sources.redhat.com:/cvs/automake |
474 |
.PHONY: wget-update |
.PHONY: wget-update |
475 |
wget-update: $(get-targets) |
wget-update: $(get-targets) |