bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch for maintMakefile:do-po-update


From: Joseph S. Myers
Subject: Patch for maintMakefile:do-po-update
Date: Wed, 15 Mar 2006 18:45:25 +0000 (UTC)

The do-po-update rule in maintMakefile uses a fixed temporary directory 
name tmppo=/tmp/$(PACKAGE)-$(VERSION)-po and does not delete the directory 
after downloading the files.  This is a problem where multiple users on 
the same system are checking out make from CVS using the recipe in 
README.cvs: second and subsequent users don't have write access to the 
directory created by the first user to checkout.  This patch fixes the 
problem by making the directory name unique and deleting the directory 
once the files have been copied.

2006-03-15  Joseph Myers  <address@hidden>

        * maintMakefile (do-po-update): Use unique directory name for
        $tmppo and remove it after copying the files.

Index: maintMakefile
===================================================================
RCS file: /sources/make/make/maintMakefile,v
retrieving revision 2.38
diff -u -r2.38 maintMakefile
--- maintMakefile       11 Feb 2006 22:16:04 -0000      2.38
+++ maintMakefile       15 Mar 2006 18:40:02 -0000
@@ -134,11 +134,11 @@
 po_repo = http://www.iro.umontreal.ca/translation/maint/$(PACKAGE)
 .PHONY: do-po-update po-update
 do-po-update:
-       tmppo=/tmp/$(PACKAGE)-$(VERSION)-po &&\
+       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
+       cp $$tmppo/*.po po && rm -rf $$tmppo
        cd po && $(MAKE) update-po
        $(MAKE) po-check
 

-- 
Joseph S. Myers
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]