From 90184bb1af77335c2df1d9e3cdbe57dfb5fcb25c Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Thu, 9 Oct 2003 13:06:06 +0000 Subject: [PATCH] upload cvs docs as well Original commit message from CVS: upload cvs docs as well --- docs/Makefile.am | 3 +++ docs/manuals.mak | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/Makefile.am b/docs/Makefile.am index 395b7e89ed..4633e66024 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -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/*~ diff --git a/docs/manuals.mak b/docs/manuals.mak index 519a73429b..ae6dd5074c 100644 --- a/docs/manuals.mak +++ b/docs/manuals.mak @@ -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)