Commit 41381081 authored by Daniel Lenski's avatar Daniel Lenski

static website tweaks

We don't need the artifacts from any builds, and add a dedicated Makefile target to update the '/public' directory.
Signed-off-by: default avatarDaniel Lenski <dlenski@gmail.com>
parent 27331d0b
......@@ -55,6 +55,7 @@ Makefile
/www/*.html
/www/openconnect.8.inc
/public/
test-driver
tests/*.log
......
......@@ -486,12 +486,12 @@ pages:
script:
- ./autogen.sh
- ./configure
- make -j4 -C www
- mv www public
dependencies:
- "Fedora/GnuTLS"
- make -C www update
dependencies: []
artifacts:
paths:
- public
only:
- master
only:
- master@openconnect/openconnect
......@@ -4,7 +4,7 @@ SUBDIRS = styles inc images
CONV = "$(srcdir)/html.py"
FTR_PAGES = csd.html charset.html token.html pkcs11.html tpm.html features.html gui.html nonroot.html hip.html tncc.html
START_PAGES = building.html connecting.html manual.html vpnc-script.html
START_PAGES = building.html connecting.html manual.html vpnc-script.html
INDEX_PAGES = changelog.html download.html index.html packages.html platforms.html licence.html
PROTO_PAGES = anyconnect.html juniper.html globalprotect.html pulse.html
TOPLEVEL_PAGES = contribute.html mail.html
......@@ -13,6 +13,10 @@ ALL_PAGES = $(FTR_PAGES) $(START_PAGES) $(INDEX_PAGES) $(TOPLEVEL_PAGES) $(PROTO
html_DATA = $(ALL_PAGES)
update: $(ALL_PAGES)
mkdir -p $(top_builddir)/public
rsync -av ./ --exclude ocserv-git/ --exclude html.py --exclude 'Makefi*' --exclude '*~' --exclude '.git*' --exclude '*.xml' $(top_builddir)/public/
.xml.html:
$(PYTHON) $(CONV) -d $(srcdir) $< > $@ || (rm $@; exit 1)
......
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