source: trunk/third/gstreamer/docs/upload.mak @ 21448

Revision 21448, 1.3 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21447, which included commits to RCS files with non-trunk default branches.
Line 
1# this snippet is to be included by both our docbook manuals
2# and gtk-doc API references
3
4# it adds an upload target to each of these dir's Makefiles
5
6# each Makefile.am should define the following variables:
7# - DOC: the base name of the documentation
8#        (faq, manual, pwg, gstreamer, gstreamer-libs)
9# - FORMATS: the formats in which DOC is output
10#            (html ps pdf)
11
12# if you want to use it, make sure your ..sh/config file contains the
13# correct User entry for the Host entry for the DOC_SERVER
14
15# these variables define the location of the online docs
16DOC_SERVER=freedesktop.org
17DOC_BASE=/srv/gstreamer.freedesktop.org/www/data/doc
18DOC_URL=$(DOC_SERVER):$(DOC_BASE)
19
20
21upload: $(FORMATS)
22        @if test "x$(GST_VERSION_NANO)" = x0; then \
23            export DOCVERSION=$(VERSION); \
24        else export DOCVERSION=head; \
25        fi; \
26        export DIR=$(DOC_BASE)/gstreamer/$$DOCVERSION/$(DOC); \
27        ssh $(DOC_SERVER) mkdir -p $$DIR; \
28        if echo $(FORMATS) | grep html > /dev/null; then export SRC="$$SRC html"; fi; \
29        if echo $(FORMATS) | grep ps > /dev/null; then export SRC="$$SRC $(DOC).ps"; fi; \
30        if echo $(FORMATS) | grep pdf > /dev/null; then export SRC="$$SRC $(DOC).pdf"; fi; \
31        echo Uploading $$SRC to $(DOC_SERVER):$$DIR; \
32        rsync -rv -e ssh --delete $$SRC $(DOC_SERVER):$$DIR; \
33        ssh $(DOC_SERVER) chmod -R g+w $$DIR; \
34        echo Done
Note: See TracBrowser for help on using the repository browser.