]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
static website tweaks
authorDaniel Lenski <dlenski@gmail.com>
Sat, 20 Feb 2021 01:11:25 +0000 (17:11 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Sat, 20 Feb 2021 01:17:37 +0000 (17:17 -0800)
We don't need the artifacts from any builds, and add a dedicated Makefile target to update the '/public' directory.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
.gitignore
.gitlab-ci.yml
www/Makefile.am

index d45a9beaae60d6ed9ac0f008b2eb86a18d028f24..a5d3705e95c819f9da0042173bc993877e227d5f 100644 (file)
@@ -55,6 +55,7 @@ Makefile
 
 /www/*.html
 /www/openconnect.8.inc
+/public/
 
 test-driver
 tests/*.log
index eac2598880ae6907be0357eb01e6c286c36c7402..c1ec190b776d19d4d18793721b4ca6f73fb45ed9 100644 (file)
@@ -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
index 5674e4edc5f5019a76a48a6545a07d06d5c5642d..5e7a5cf2c26467a44a2a09ad798a97e3ec5cb892 100644 (file)
@@ -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)