upload cvs docs as well
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 9 Oct 2003 13:06:06 +0000 (13:06 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Thu, 9 Oct 2003 13:06:06 +0000 (13:06 +0000)
Original commit message from CVS:
upload cvs docs as well

docs/Makefile.am
docs/manuals.mak

index 395b7e8..4633e66 100644 (file)
@@ -18,6 +18,9 @@ EXTRA_DIST = \
        slides manuals.mak htmlinstall.mak \
        image-png image-pdf image-eps version.entities.in
 
+upload:
+       for a in manual pwg faq; do cd $$a; make upload; cd ..; done
+
 dist-hook:
        $(RM) -rf $(distdir)/random/CVS
        $(RM) -rf $(distdir)/random/*~
index 519a734..ae6dd50 100644 (file)
@@ -1,5 +1,8 @@
 # rewritten by Thomas to be more simple and working
 
+# SF username
+USERNAME ?= thomasvs
+
 ### These are all generic; we set all the variables we need
 
 # intermediary build path
@@ -165,7 +168,14 @@ check-local:
        xmllint -noout -valid $(MAIN)
 
 ### this is a website upload target
+
 upload: html ps pdf
        export RSYNC_RSH=ssh
-       rsync -arv $(DOC).ps $(DOC).pdf html thomasvs@shell.sf.net:/home/groups/g/gs/gstreamer/htdocs/docs/$(VERSION)/$(DOC)
+       if test "x$$GST_PLUGINS_VERSION_NANO" = x0; then \
+            export DOCVERSION=$(VERSION); \
+        else export DOCVERSION=cvs; \
+        fi; \
+       echo $$DOCVERSION; \
+       ssh $(USERNAME)@shell.sf.net mkdir -p /home/groups/g/gs/gstreamer/htdocs/docs/$$DOCVERSION/$(DOC); \
+       rsync -arv $(DOC).ps $(DOC).pdf html $(USERNAME)@shell.sf.net:/home/groups/g/gs/gstreamer/htdocs/docs/$$DOCVERSION/$(DOC)