]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/docca/util/comparison/build-and-compare.sh
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / docca / util / comparison / build-and-compare.sh
CommitLineData
1e59de90
TL
1# This script runs a build and compares the scrubbed/normalized
2# results against the scrubbed results of a previous build (run using
3# update-baseline-html.sh). It is primarily used to guard against
4# XSLT regressions in docca.
5
6SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
7
8! test -d htmlPREVIOUS_SCRUBBED && echo "First run update-baseline-html.sh" && exit
9
10rm -rf html_SCRUBBED
11
12echo "Running clean build..."
13b2 clean
14b2
15
16echo "Scrubbing results and storing as html_SCRUBBED..."
17cp -r html html_SCRUBBED
18cd html_SCRUBBED
19grep -rl -f ${SCRIPT_DIR}/grep-expressions . | xargs sed -i -f ${SCRIPT_DIR}/sed-commands
20
21echo "Showing diffs from previous build (stored in diffs.txt):"
22cd ..
23diff -r htmlPREVIOUS_SCRUBBED html_SCRUBBED >diffs.txt
24cat diffs.txt