summaryrefslogtreecommitdiff
path: root/docs/manuals.mak
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-01-28 11:42:59 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-01-28 11:42:59 +0000
commitf2582fb3a2a27f8d4488fd250e1fb9a1604381cc (patch)
treebb7368b0e4857d12a35ade86fa7c1073618258bd /docs/manuals.mak
parent671d5229b91f110051c83838944dd6e6b1cfd319 (diff)
fix upload target
Original commit message from CVS: fix upload target
Diffstat (limited to 'docs/manuals.mak')
-rw-r--r--docs/manuals.mak18
1 files changed, 11 insertions, 7 deletions
diff --git a/docs/manuals.mak b/docs/manuals.mak
index c5ca26b62..1309790f8 100644
--- a/docs/manuals.mak
+++ b/docs/manuals.mak
@@ -170,14 +170,18 @@ check-local: $(BUILDDIR)/$(MAIN)
cd $(BUILDDIR) && xmllint -noout -valid $(MAIN)
### this is a website upload target
+### if you want to use it, make sure your ..sh/config file contains the
+### correct User entry for the Host entry for the DOC_SERVER
+DOC_SERVER=freedesktop.org
+DOC_BASE=/home/projects/gstreamer/www/data/doc
+DOC_URL=$(DOC_SERVER):$(DOC_BASE)
upload: html ps pdf
- @export RSYNC_RSH=ssh; \
- if test "x$$GST_PLUGINS_VERSION_NANO" = x0; then \
+ @if test "x$$GST_PLUGINS_VERSION_NANO" = x0; then \
export DOCVERSION=$(VERSION); \
- else export DOCVERSION=cvs; \
+ else export DOCVERSION=head; \
fi; \
- echo Uploading docs to shell.sf.net/home/groups/g/gs/gstreamer/htdocs/docs/$$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)
-
+ export DIR=$(DOC_BASE)/gstreamer/$$DOCVERSION/$(DOC); \
+ echo Uploading docs to $(DOC_SERVER):$$DIR; \
+ ssh $(DOC_SERVER) mkdir -p $$DIR; \
+ rsync -arv -e ssh $(DOC).ps $(DOC).pdf html $(DOC_SERVER):$$DIR