From 6b67aa6dd111fb139e1be0f6a386e3ff84cce091 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sat, 29 Apr 2006 00:36:47 +0000 Subject: [PATCH] move upload.mak to common Original commit message from CVS: * common/Makefile.am: * docs/Makefile.am: * docs/faq/Makefile.am: * docs/gst/Makefile.am: * docs/libs/Makefile.am: * docs/manual/Makefile.am: * docs/plugins/Makefile.am: * docs/pwg/Makefile.am: * docs/slides/Makefile.am: * docs/upload.mak: * common/upload.mak: move upload.mak to common --- Makefile.am | 2 +- upload.mak | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 upload.mak diff --git a/Makefile.am b/Makefile.am index 8b61c84..2f85098 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ SUBDIRS = m4 EXTRA_DIST = \ ChangeLog \ gettext.patch \ - glib-gen.mak gtk-doc.mak release.mak \ + glib-gen.mak gtk-doc.mak upload.mak release.mak \ gst-autogen.sh \ c-to-xml.py gst-xmlinspect.py mangle-tmpl.py scangobj-merge.py \ gtk-doc-plugins.mak \ diff --git a/upload.mak b/upload.mak new file mode 100644 index 0000000..60731e5 --- /dev/null +++ b/upload.mak @@ -0,0 +1,33 @@ +# this snippet is to be included by both our docbook manuals +# and gtk-doc API references + +# it adds an upload target to each of these dir's Makefiles + +# each Makefile.am should define the following variables: +# - DOC: the base name of the documentation +# (faq, manual, pwg, gstreamer, gstreamer-libs) +# - FORMATS: the formats in which DOC is output +# (html ps pdf) + +# if you want to use it, make sure your $HOME/.ssh/config file contains the +# correct User entry for the Host entry for the DOC_SERVER + +# these variables define the location of the online docs +DOC_SERVER = gstreamer.freedesktop.org +DOC_BASE = /srv/gstreamer.freedesktop.org/www/data/doc +DOC_URL = $(DOC_SERVER):$(DOC_BASE) + +upload: $(FORMATS) + @if test "x$(PACKAGE_VERSION_NANO)" = x0; then \ + export DOCVERSION=$(VERSION); \ + else export DOCVERSION=head; \ + fi; \ + export DIR=$(DOC_BASE)/gstreamer/$$DOCVERSION/$(DOC); \ + ssh $(DOC_SERVER) mkdir -p $$DIR; \ + if echo $(FORMATS) | grep html > /dev/null; then export SRC="$$SRC html"; fi; \ + if echo $(FORMATS) | grep ps > /dev/null; then export SRC="$$SRC $(DOC).ps"; fi; \ + if echo $(FORMATS) | grep pdf > /dev/null; then export SRC="$$SRC $(DOC).pdf"; fi; \ + echo Uploading $$SRC to $(DOC_SERVER):$$DIR; \ + rsync -rv -e ssh --delete $$SRC $(DOC_SERVER):$$DIR; \ + ssh $(DOC_SERVER) chmod -R g+w $$DIR; \ + echo Done -- 2.7.4