diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2017-04-26 12:03:51 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-05-04 10:25:02 +0000 |
commit | 1f8f34167be8bede05f5442d9969caf055f3c031 (patch) | |
tree | 1d0c8465fd8b02785ca3e61e6f045418e9ec8f53 /quips.pro | |
parent | 7fad692328ffa099e31d6d9a8d27d7aff796f655 (diff) |
Add site generation scripts
Things left for future work:
* Sort out a suitable host on which to publish this (QTQAINFRA-1211)
* Set up a routine site-publishing cron job (QTQAINFRA-1211)
* Make links of entries in some headers (QTQAINFRA-1212)
Task-number: QTQAINFRA-1173
Started-by: Louai Al-Khanji <louai.al-khanji@qt.io>
Change-Id: I7ee0c37e38cf30de52684ac80cb7848ec8712a0e
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'quips.pro')
-rw-r--r-- | quips.pro | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/quips.pro b/quips.pro new file mode 100644 index 0000000..6462f59 --- /dev/null +++ b/quips.pro @@ -0,0 +1,38 @@ +TEMPLATE = aux + +QUIPS += $$files($$PWD/quip-*.txt) + +PYTHON = python +GENQUIP0_PY = $$PWD/scripts/gen-quip-0000.py +QUIP2HTML_PY = $$PWD/scripts/quip2html.py +HTTP_PORT = 8000 + +quip2html.input = QUIPS +quip2html.output = html/${QMAKE_FILE_BASE}.html +quip2html.commands = $$PYTHON $$QUIP2HTML_PY ${QMAKE_FILE_NAME} > ${QMAKE_FILE_OUT} +quip2html.depends += $$QUIP2HTML_PY template.html +quip2html.CONFIG += target_predeps + +quip_0000.target = html/quip-0000.html +quip_0000.commands = $$PYTHON $$GENQUIP0_PY $$QUIPS | $$PYTHON $$QUIP2HTML_PY - > $$quip_0000.target +quip_0000.depends += $$GENQUIP0_PY $$QUIP2HTML_PY $$QUIPS html/.ready + +html_index.target = html/index.html +html_index.commands = ln -sf quip-0000.html html/index.html +html_index.depends = html/.ready + +html_setup.target = html/.ready +html_setup.commands = make -f $$PWD/scripts/setup.mk SRC=$$PWD setup + +template.depends = $$PWD/scripts/template.diff $$PWD/planetqt/template.qt +template.target = template.html +template.commands = patch -d $$PWD -l -p0 -i scripts/template.diff -o scripts/template.html && mv $$PWD/scripts/template.html ./ + +html_serve.target = serve +html_serve.commands = cd html && $$PYTHON -m SimpleHTTPServer $$HTTP_PORT + +POST_TARGETDEPS += html/quip-0000.html html/index.html html/.ready +QMAKE_CLEAN += html/ + +QMAKE_EXTRA_TARGETS += html_setup template quip_0000 html_index html_serve +QMAKE_EXTRA_COMPILERS += quip2html |