mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
doc: Update the test script for wikiparser
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
72ca92224d
commit
4c78bcf89c
@ -3,7 +3,7 @@
|
||||
|
||||
for var in "$@"
|
||||
do
|
||||
gen=$(python3 scripts/wikiparser.py "$var" | xmllint --format -)
|
||||
orig=$(sed 's/<revhistory>.*<\/revhistory>//g' "${var//.wiki/.xml}" | xmllint --format -)
|
||||
gen=$(python3 scripts/wikiparser.py "$var" --begin-marker='## BEGIN_INCLUDE' --end-marker='## END_INCLUDE' | xsltproc scripts/fixes.xslt - | xmllint --format -)
|
||||
orig=$(xmllint --format "${var//.raw.wiki/.xml}" )
|
||||
diff --ignore-all-space <(echo "$gen") <(echo "$orig")
|
||||
done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user