[csw-devel] [PATCH] mGAR v2: README.CSW support, base directories

Maciej Blizinski maciej at opencsw.org
Sat Mar 5 11:18:18 CET 2011


Before copying README.CSW, make sure that the base directory already exists.
---
 gar/v2/gar.pkg.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gar/v2/gar.pkg.mk b/gar/v2/gar.pkg.mk
index 644f672..cb8114e 100644
--- a/gar/v2/gar.pkg.mk
+++ b/gar/v2/gar.pkg.mk
@@ -682,6 +682,7 @@ reset-merge-license:
 
 merge-README.CSW: $(WORKDIR)
 	$(_DBG)if test -f $(WORKDIR)/README.CSW; then \
+		$(foreach P,$(_PKG_SPECS),mkdir -p $(PKGROOT)$(docdir)/$(call catalogname,$P);) \
 		$(foreach P,$(_PKG_SPECS),cp $(WORKDIR)/README.CSW $(PKGROOT)$(docdir)/$(call catalogname,$P)/README.CSW;) \
 	fi
 	@$(MAKECOOKIE)
-- 
1.7.3.2



More information about the devel mailing list