]> git.saurik.com Git - bison.git/commitdiff
* Makefile.maint (do-po-update): Wget refuses to overwrite files:
authorAkim Demaille <akim@epita.fr>
Wed, 29 Aug 2001 10:46:17 +0000 (10:46 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 29 Aug 2001 10:46:17 +0000 (10:46 +0000)
download in a tmp dir.

ChangeLog
Makefile.maint

index 80387dd65e752df7b893e0f05f57839eb4c08688..f6d28981e82db7deee38edaffb930adda62009ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-29  Akim Demaille  <akim@epita.fr>
+
+       * Makefile.maint (do-po-update): Wget refuses to overwrite files:
+       download in a tmp dir.
+
 2001-08-28  Marc Autret  <autret_m@epita.fr>
 
        * config/depcomp: New file.
 
        * doc/bison.1 (mandoc): Adjust.
        From Juan Manuel Guerrero.
-       
+
 2001-08-28  Marc Autret  <autret_m@epita.fr>
 
        * src/print_graph.c (print_state): Fix.
 
 2001-08-27  Marc Autret  <autret_m@epita.fr>
 
-       * src/vcg.h (classname_s, infoname_s, node_s): Constify the 
+       * src/vcg.h (classname_s, infoname_s, node_s): Constify the
        char * members.
        Echo modifications to the functions prototypes.
        * src/vcg.c (add_classname, add_infoname): Adjust arguments.
index d3a34e02e49d5b1e75927e80c0209b6c6b24747a..0e6a5085a8a4040334b4b54d620c29a4b8db82e1 100644 (file)
@@ -60,8 +60,11 @@ move_if_change ?= move-if-change
 po_repo = http://www.iro.umontreal.ca/contrib/po/maint/$(PACKAGE)
 .PHONY: do-po-update po-update
 do-po-update:
-       cd $(srcdir)/po && wget -r -l1 -nd --no-parent -A '*.po' $(po_repo)
-       rm $(srcdir)/po/index.html
+       tmppo=/tmp/$(PACKAGE)-$(VERSION)-po &&\
+       rm -rf $$tmppo && \
+       mkdir $$tmppo && \
+       (cd $$tmppo && $(WGET) -r -l1 -nd --no-parent -A '*.po' $(po_repo)) &&\
+       cp $$tmppo/*.po po
        cd po && $(MAKE) update-po
        $(MAKE) po-check
 
@@ -267,7 +270,7 @@ rel-check:
        md5_tmp=/tmp/rel-check-md5-$$$$; \
        set -e; \
        trap 'status=$$?; rm -f $$tarz $$md5_tmp; exit $$status' 0 1 2 3 15; \
-       wget -q --output-document=$$tarz $(url); \
+       $(WGET) -q --output-document=$$tarz $(url); \
        echo "$(md5)  -" > $$md5_tmp; \
        md5sum -c $$md5_tmp < $$tarz