Loading generateChangemarks/changemarks.py +4 −0 Original line number Diff line number Diff line Loading @@ -296,6 +296,10 @@ def process(document:str, outDirectory:str, mr:MR) -> None: sourceMdLines = sourceText.splitlines(keepends=False) clauses = find_all_clauses(progress, sourceMdLines) changed_clauses = find_changed_clauses(progress, sourceMdLines, clauses, mr, outDirectory) #Export list of changed clauses with open(f'{outDirectory}/changedClauses.txt', "w", encoding='utf-8', errors='replace') as f: f.write("\n".join([clause.clause_nr for clause in changed_clauses])) f.close() def main(args=None): # Parse command line arguments Loading generate_changemarks.sh +2 −2 Original line number Diff line number Diff line #!/bin/bash FORGELIB_DOCKER_IMAGE=forge.3gpp.org:5050/tools/3gpp-scripts/forgelib:v2.5.0 FORGELIB_DOCKER_IMAGE=forge.3gpp.org:5050/tools/3gpp-scripts/forgelib:v2.11.0 GENERATE_CHANGEMARKS_DOCKER_IMAGE=generatechangemarks:master DOCKER_IMAGE=pandoc/core:3.1.1.0 Loading Loading @@ -37,7 +37,7 @@ done echo "\n------ Combining docx --------" #docker container run --rm -v $(pwd):/tmp/ -u $(id -u):$(id -g) "$FORGELIB_DOCKER_IMAGE" forgelib-changedocs -vv -sf "/tmp/out/" --preprocessor onem2m --outPath=/tmp/docs --startdelimiter "/tmp/$4" --enddelimiter "/tmp/$5" --coversheet "/tmp/$6" "$HOST_URL" "$2" "$3" docker container run --rm -v $(pwd):/tmp/ -u $(id -u):$(id -g) "$FORGELIB_DOCKER_IMAGE" forgelib-changedocs -vv -sf "/tmp/out/" --preprocessor onem2m --outPath=/tmp/docs --startdelimiter "/tmp/$4" --enddelimiter "/tmp/$5" --coversheet "/tmp/$6" "$HOST_URL" "$2" "$3" docker container run --rm -v $(pwd):/tmp/ -u $(id -u):$(id -g) -w "/tmp" "$FORGELIB_DOCKER_IMAGE" forgelib-changedocs -vv -sf "out/" --preprocessor onem2m --outPath=docs/ --startdelimiter "$4" --enddelimiter "$5" --coversheet "$6" "$HOST_URL" "$2" "$3" echo "\n------ Converting to tracked changes docx --------" for i in docs/*.docx ; do Loading onem2m_coversheet_template.docx +268 B (41.2 KiB) File changed.No diff preview for this file type. View original file View changed file Loading
generateChangemarks/changemarks.py +4 −0 Original line number Diff line number Diff line Loading @@ -296,6 +296,10 @@ def process(document:str, outDirectory:str, mr:MR) -> None: sourceMdLines = sourceText.splitlines(keepends=False) clauses = find_all_clauses(progress, sourceMdLines) changed_clauses = find_changed_clauses(progress, sourceMdLines, clauses, mr, outDirectory) #Export list of changed clauses with open(f'{outDirectory}/changedClauses.txt', "w", encoding='utf-8', errors='replace') as f: f.write("\n".join([clause.clause_nr for clause in changed_clauses])) f.close() def main(args=None): # Parse command line arguments Loading
generate_changemarks.sh +2 −2 Original line number Diff line number Diff line #!/bin/bash FORGELIB_DOCKER_IMAGE=forge.3gpp.org:5050/tools/3gpp-scripts/forgelib:v2.5.0 FORGELIB_DOCKER_IMAGE=forge.3gpp.org:5050/tools/3gpp-scripts/forgelib:v2.11.0 GENERATE_CHANGEMARKS_DOCKER_IMAGE=generatechangemarks:master DOCKER_IMAGE=pandoc/core:3.1.1.0 Loading Loading @@ -37,7 +37,7 @@ done echo "\n------ Combining docx --------" #docker container run --rm -v $(pwd):/tmp/ -u $(id -u):$(id -g) "$FORGELIB_DOCKER_IMAGE" forgelib-changedocs -vv -sf "/tmp/out/" --preprocessor onem2m --outPath=/tmp/docs --startdelimiter "/tmp/$4" --enddelimiter "/tmp/$5" --coversheet "/tmp/$6" "$HOST_URL" "$2" "$3" docker container run --rm -v $(pwd):/tmp/ -u $(id -u):$(id -g) "$FORGELIB_DOCKER_IMAGE" forgelib-changedocs -vv -sf "/tmp/out/" --preprocessor onem2m --outPath=/tmp/docs --startdelimiter "/tmp/$4" --enddelimiter "/tmp/$5" --coversheet "/tmp/$6" "$HOST_URL" "$2" "$3" docker container run --rm -v $(pwd):/tmp/ -u $(id -u):$(id -g) -w "/tmp" "$FORGELIB_DOCKER_IMAGE" forgelib-changedocs -vv -sf "out/" --preprocessor onem2m --outPath=docs/ --startdelimiter "$4" --enddelimiter "$5" --coversheet "$6" "$HOST_URL" "$2" "$3" echo "\n------ Converting to tracked changes docx --------" for i in docs/*.docx ; do Loading
onem2m_coversheet_template.docx +268 B (41.2 KiB) File changed.No diff preview for this file type. View original file View changed file