mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
fix upload of docs
Original commit message from CVS: fix upload of docs
This commit is contained in:
parent
f8e21cbdbe
commit
c20b399066
3 changed files with 7 additions and 27 deletions
|
@ -29,28 +29,3 @@ docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/$(DOC)
|
|||
doc_DATA = $(PDF_DAT) $(PS_DAT)
|
||||
|
||||
include $(srcdir)/../htmlinstall.mak
|
||||
|
||||
### these are website updating targets
|
||||
# target for building the faq dir to be put on the website and rsync-ing it
|
||||
upload: www
|
||||
export RSYNC_RSH=ssh
|
||||
cd www && rsync -arv * thomasvs@shell.sf.net:/home/groups/g/gs/gstreamer/htdocs/docs/faq/
|
||||
|
||||
www: html
|
||||
mkdir -p www
|
||||
cp html/base.css www
|
||||
cd html && for a in *.html; do \
|
||||
xmllint --format --htmlout $$a 2> /dev/null | \
|
||||
tail +3 > ../www/$$a; \
|
||||
done
|
||||
cd www && rename html php *.html && for a in *.php; do \
|
||||
perl -i -p -e's@^.*\<head.*@\<?php include "../../lib/template.php"; echo get_header ("GStreamer: FAQ", "../.."); \?\>@' $$a; \
|
||||
perl -i -p -e's@^.*\</body.*@\<?php echo get_footer(); \?\>@' $$a; \
|
||||
perl -i -p -e's@^.*\</html.*@@' $$a; \
|
||||
done
|
||||
cd www && for a in *.php; do \
|
||||
perl -i -p -e's@href="index\.html@href="index.php@' $$a; \
|
||||
perl -i -p -e's@href="(ar.*)\.html@href="$$1.php@' $$a; \
|
||||
done
|
||||
@-cp -pr html/images www 2> /dev/null
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ html/index.html: $(BUILDDIR)/$(DOC).xml $(PNG_BUILT) $(FIG_SRC)
|
|||
$(DOC).ps: $(BUILDDIR)/$(DOC).xml $(EPS_BUILT) $(PNG_SRC) $(FIG_SRC)
|
||||
@echo "*** Generating PS output ***"
|
||||
@cp $(srcdir)/../image-eps $(BUILDDIR)/image.entities
|
||||
@LC_PAPER=$(PAPER_LOCALE) && cd $(BUILDDIR) && xmlto ps -o .. $(DOC).xml
|
||||
@export LC_PAPER=$(PAPER_LOCALE) && cd $(BUILDDIR) && xmlto ps -o .. $(DOC).xml
|
||||
|
||||
$(DOC).pdf: $(DOC).ps
|
||||
@echo "*** Generating PDF output ***"
|
||||
|
@ -162,3 +162,9 @@ $(BUILDIMAGESDIR)/%.ps: %.png
|
|||
# make sure xml validates properly
|
||||
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)
|
||||
|
||||
|
|
|
@ -29,4 +29,3 @@ docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/$(DOC)
|
|||
doc_DATA = $(PDF_DAT) $(PS_DAT)
|
||||
|
||||
include $(srcdir)/../htmlinstall.mak
|
||||
|
||||
|
|
Loading…
Reference in a new issue