Commit deb5b5e3 authored by Thomas Vander Stichele's avatar Thomas Vander Stichele
Browse files

fix uploads of docs

Original commit message from CVS:
fix uploads of docs
parent ca631d40
......@@ -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 *
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; \
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; \
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; \
@-cp -pr html/images www 2> /dev/null
......@@ -163,3 +163,9 @@ $(BUILDIMAGESDIR)/ %.png
# make sure xml validates properly
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$(VERSION)/$(DOC)
......@@ -29,4 +29,3 @@ docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/$(DOC)
doc_DATA = $(PDF_DAT) $(PS_DAT)
include $(srcdir)/../htmlinstall.mak
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment