Artifact 18ccdf9d95edda750e7eaeb1afc573bd1d4601b6:
- Executable file build/update-wiki-docs — part of check-in [ea2c60a999] at 2016-12-08 04:24:49 on branch tls-1-7 — Updated to remove comment from rendered HTML in documentation (user: rkeene, size: 509) [annotate] [blame] [check-ins using] [more...]
#! /usr/bin/env bash
version="$1"
cd "$(dirname "$(which "$0")")/.." || exit 1
if [ -z "${version}" ]; then
	version="$(cat configure.in | grep AC_INIT | head -1 | sed 's@^AC_INIT([^,]*, *@@;s@,.*$@@;s@ *)$@@')"
fi
newBody="$(cat tls.htm  | sed '/<\/body>/,$ d;0,/<body[ >]/ d;/<!--/,/-->/ d' | sed 's/@@VERS@@/'"${version}"'/g' | grep -iv '^<!doctype')"
oldBody="$(fossil wiki export 'Documentation')"
if [ "${newBody}" != "${oldBody}" ]; then
	echo "${newBody}" | fossil wiki commit 'Documentation'
fi