2004-01-28 12:16:51 +00:00
|
|
|
# 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 ..sh/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=freedesktop.org
|
|
|
|
DOC_BASE=/home/projects/gstreamer/www/data/doc
|
|
|
|
DOC_URL=$(DOC_SERVER):$(DOC_BASE)
|
|
|
|
|
|
|
|
|
|
|
|
upload: $(FORMATS)
|
2004-01-30 17:01:46 +00:00
|
|
|
@if test "x$(GST_VERSION_NANO)" = x0; then \
|
2004-01-28 12:16:51 +00:00
|
|
|
export DOCVERSION=$(VERSION); \
|
|
|
|
else export DOCVERSION=head; \
|
|
|
|
fi; \
|
|
|
|
export DIR=$(DOC_BASE)/gstreamer/$$DOCVERSION/$(DOC); \
|
|
|
|
ssh $(DOC_SERVER) mkdir -p $$DIR; \
|
2004-01-28 12:37:14 +00:00
|
|
|
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; \
|
2004-01-28 12:54:00 +00:00
|
|
|
rsync -rv -e ssh --delete $$SRC $(DOC_SERVER):$$DIR; \
|
2004-01-28 12:37:14 +00:00
|
|
|
ssh $(DOC_SERVER) chmod -R g+w $$DIR; \
|
2004-01-28 12:16:51 +00:00
|
|
|
echo Done
|