taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit c0c895b2d93797aa0da109b208dbec6f08dd56f0
parent 6b41a64d4218c62f37e6f50daedbd063cf562ea5
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Wed, 17 Jan 2018 09:22:04 +0100

auto-compile docs landing

Diffstat:
Metc/nginx/sites-enabled/docs-ssl.site | 4++--
Ataler-build/update_doc_landing.sh | 24++++++++++++++++++++++++
2 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/etc/nginx/sites-enabled/docs-ssl.site b/etc/nginx/sites-enabled/docs-ssl.site @@ -3,8 +3,8 @@ server { listen [::]:443 ssl; ## listen for ipv4; this line is default and implied # listen [::]:80 default_server ipv6only=on; ## listen for ipv6 - # Temporary, as this is doesn't do i18n - root /home/docbuilder/landing/docs/; + # Temporary, as this doesn't do i18n + root /home/docbuilder/build/docs-landing/; # Make site accessible from http://localhost/ server_name docs.taler.net diff --git a/taler-build/update_doc_landing.sh b/taler-build/update_doc_landing.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +set -eu + +fetch () { + git clean -fdx + git fetch + # reset to updated upstream branch, but only if we're tracking a branch + branch=$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo head) + git reset --hard "$branch" +} + +cd $HOME/landing +fetch + +git submodule update --force --init +AUTOMAKE="automake --foreign" autoreconf -fiv +./configure +cd demo/ +make + +# copy files over. +mkdir -p $HOME/build/docs-landing/ +cp -t $HOME/build/docs-landing/ docs/*.{html,css,svg}