[yum-commits] Branch 'yum-3_2_X' - Makefile

Tim Lauridsen timlau at osuosl.org
Tue Feb 23 17:55:53 UTC 2010


 Makefile |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

New commits:
commit 14b6126f964247fb1dc43c5187c309fce7ba26b1
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date:   Tue Feb 23 18:55:46 2010 +0100

    created upload-docs Makefile target to generate epydoc and upload it to yum web page

diff --git a/Makefile b/Makefile
index 1378b31..d75b220 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ RELEASE=$(shell awk '/Release:/ { print $$2 }' ${PKGNAME}.spec)
 CVSTAG=yum-$(subst .,_,$(VERSION)-$(RELEASE))
 PYTHON=python
 WEBHOST = yum.baseurl.org
-WEB_DOC_PATH = /srv/projects/yum/web/docs/yum-api/
+WEB_DOC_PATH = /srv/projects/yum/web/download/docs/yum-api/
 
 all: subdirs
 
@@ -48,8 +48,15 @@ docs:
 	@rm -rf docs/epydoc/$(VERSION)
 	@mkdir -p docs/epydoc/$(VERSION)
 	@epydoc -o docs/epydoc/$(VERSION) -u http://yum.baseurl.org --name "Yum" --graph all $(DOCS)
+
+upload-docs: docs
 # Upload to yum website
-#	@scp -R docs/epydoc/$(VERSION) $(WEBHOST):$(WEB_DOC_PATH)/${VERSION}
+	@rm -rf yum-apidoc-$(VERSION).tar.gz
+	@dir=$$PWD; cd $$dir/docs/epydoc; tar zcf $$dir/yum-apidoc-$(VERSION).tar.gz $(VERSION)
+	@scp yum-apidoc-$(VERSION).tar.gz $(WEBHOST):$(WEB_DOC_PATH)/.
+	@ssh $(WEBHOST) "cd $(WEB_DOC_PATH); tar zxvf yum-apidoc-$(VERSION).tar.gz; rm yum-apidoc-$(VERSION).tar.gz"
+	@rm -rf yum-apidoc-$(VERSION).tar.gz
+
 
 doccheck:
 	epydoc --check $(DOCS)


More information about the Yum-commits mailing list