Check-in [3907284219]
Overview
SHA1:3907284219af07d4242d969987b043f6ae472356
Date: 2014-01-21 09:53:14
User: rkeene
Comment:Updated to only update page if it has changed
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2014-01-21
09:57
[2f25369419] Removed external links in generated page (user: rkeene, tags: trunk)
09:53
[3907284219] Updated to only update page if it has changed (user: rkeene, tags: trunk)
09:50
[dad30e7b99] Added script to sync man page to Fossil (user: rkeene, tags: trunk)
Changes

Modified build/pre.sh from [be31b588ea] to [1221ac4453].

     1      1   #! /bin/bash
     2      2   
     3      3   cd /home/rkeene/devel/freecolor || exit 1
     4      4   
     5         -groff -mandoc -Thtml < freecolor.1 | awk '/^<body>$/{ start = 1; next; } /^<\/body>$/{start = 0} (start == 1){ print $0 }' | fossil wiki commit Manual
     6         -fossil sync
            5  +newpage="$(groff -mandoc -Thtml < freecolor.1 | awk '/^<body>$/{ start = 1; next; } /^<\/body>$/{start = 0} (start == 1){ print $0 }')"
            6  +oldpage="$(fossil wiki export Manual)"
            7  +
            8  +if [ "${oldpage}" != "${newpage}" ]; then
            9  +	echo "${newpage}" | fossil wiki commit Manual
           10  +
           11  +	fossil sync
           12  +fi