From: David Lecompte <3gpp@metani.eu> Date: Thu, 11 Jun 2026 15:27:55 +0000 (+0200) Subject: docx2asn.sh: fix things that should not be so in 38.331 X-Git-Url: https://nuage.metani.fr/gitweb/3GPP.git/commitdiff_plain/66e70249504a5787b6b5ef2a96b7a3df3d059f05?hp=7d091f612ccde5e618c3978e6278453c1a386cca docx2asn.sh: fix things that should not be so in 38.331 --- diff --git a/bin/docx2asn.sh b/bin/docx2asn.sh index 8a09bb5..89bb19f 100755 --- a/bin/docx2asn.sh +++ b/bin/docx2asn.sh @@ -57,7 +57,13 @@ while [ "$#" -gt 0 ]; do CYGWIN*) LC_ALL=C sed -i $'s/^\x96/-/g; s/\r$//' "${1%.docx}.txt" ;; *) echo "Unkown platform $platform" exit 1;; - esac + esac + + # Changes things that should not be so in the specification + # Change "-- Cond N3C MP" to "-- Cond N3C-MP" (to respect condition naming rules) + LC_ALL=C sed -i 's/-- Cond N3C MP/-- Cond N3C-MP/' "${1%.docx}.txt" + LC_ALL=C sed -i 's/^N3C MP/N3C-MP/' "${1%.docx}.txt" + LC_ALL=C sed -i 's/-- Cond HOAndServCellAdd,$/-- Cond HOAndServCellAdd/' "${1%.docx}.txt" fi if [[ -e "${1%.docx}.asn" ]] ; then