Artifact 1221ac445342291eb56b84547a8e3fc7146ad781:
- Executable file build/pre.sh — part of check-in [3907284219] at 2014-01-21 09:53:14 on branch trunk — Updated to only update page if it has changed (user: rkeene, size: 339) [annotate] [blame] [check-ins using]
#! /bin/bash cd /home/rkeene/devel/freecolor || exit 1 newpage="$(groff -mandoc -Thtml < freecolor.1 | awk '/^<body>$/{ start = 1; next; } /^<\/body>$/{start = 0} (start == 1){ print $0 }')" oldpage="$(fossil wiki export Manual)" if [ "${oldpage}" != "${newpage}" ]; then echo "${newpage}" | fossil wiki commit Manual fossil sync fi