From b4a3f89a6b7fc30cbc1b91ec09945c75e8781254 Mon Sep 17 00:00:00 2001
From: Petr Šplíchal <psplicha@redhat.com>
Date: Wed, 4 Apr 2012 16:35:59 +0200
Subject: New directories on the web: download & examples

---
 Makefile |  9 +++++++--
 README   | 18 ++++++++++++++++++
 2 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index b970616..aebab44 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ PUSH_URL = fedorapeople.org:public_html/python-nitrate
 
 PACKAGE = python-nitrate-$(VERSION)
 DOCS = $(TMP)/$(PACKAGE)/documentation
+EXAMPLES = $(TMP)/$(PACKAGE)/examples
 CSS = --stylesheet=style.css --link-stylesheet
 FILES = COPYING README \
 		Makefile python-nitrate.spec \
@@ -32,12 +33,16 @@ srpm: tarball
 packages: rpm srpm
 
 push: packages
+	# Documentation
+	scp $(DOCS)/*.{css,html} $(PUSH_URL)
+	# Examples
+	scp $(EXAMPLES)/*.py $(PUSH_URL)/examples
+	# Archives & rpms
 	scp python-nitrate.spec \
 		$(TMP)/SRPMS/$(PACKAGE)* \
 		$(TMP)/RPMS/noarch/$(PACKAGE)* \
 		$(TMP)/SOURCES/$(PACKAGE).tar.bz2 \
-		$(DOCS)/*.{css,html} \
-		$(PUSH_URL)
+		$(PUSH_URL)/download
 
 clean:
 	rm -rf $(TMP)
diff --git a/README b/README
index 88c5510..ddb5d33 100644
--- a/README
+++ b/README
@@ -69,6 +69,15 @@ plan. The 'create.py' script gives a broader overview covering
 object creation, attribute setting, adjusting logs and caching.
 
 
+CONFIGURATION
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+To be able to contact the Nitrate server a minimal user config
+file ~/.nitrate has to be provided in the user home directory::
+
+    [nitrate]
+    url = https://nitrate.server/xmlrpc/
+
+
 TEST SUITE
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 The high-level interface has an integrated test suite, which can
@@ -83,6 +92,15 @@ LINKS
 Project page:
 http://psss.fedorapeople.org/python-nitrate/
 
+Interpreter:
+http://psss.fedorapeople.org/python-nitrate/nitrate.html
+
+Examples:
+http://psss.fedorapeople.org/python-nitrate/examples/
+
+Download:
+http://psss.fedorapeople.org/python-nitrate/download/
+
 Git repo:
 http://fedorapeople.org/gitweb?p=psss/public_git/python-nitrate
 
-- 
cgit