]>
Commit | Line | Data |
---|---|---|
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 | ||
6 | SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | |
7 | ||
8 | ! test -d htmlPREVIOUS_SCRUBBED && echo "First run update-baseline-html.sh" && exit | |
9 | ||
10 | rm -rf html_SCRUBBED | |
11 | ||
12 | echo "Running clean build..." | |
13 | b2 clean | |
14 | b2 | |
15 | ||
16 | echo "Scrubbing results and storing as html_SCRUBBED..." | |
17 | cp -r html html_SCRUBBED | |
18 | cd html_SCRUBBED | |
19 | grep -rl -f ${SCRIPT_DIR}/grep-expressions . | xargs sed -i -f ${SCRIPT_DIR}/sed-commands | |
20 | ||
21 | echo "Showing diffs from previous build (stored in diffs.txt):" | |
22 | cd .. | |
23 | diff -r htmlPREVIOUS_SCRUBBED html_SCRUBBED >diffs.txt | |
24 | cat diffs.txt |