Artifact 415f87e4c0a9298aa3715f51e28a86ce12eee68a:
- Executable file build/pre.sh — part of check-in [2f25369419] at 2014-01-21 09:57:18 on branch trunk — Removed external links in generated page (user: rkeene, size: 358) [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} /href="[^#]/{next} (start == 1){ print $0 }')" oldpage="$(fossil wiki export Manual)" if [ "${oldpage}" != "${newpage}" ]; then echo "${newpage}" | fossil wiki commit Manual fossil sync fi