mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
10 lines
361 B
Bash
Executable File
10 lines
361 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
for var in "$@"
|
|
do
|
|
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
|