From 1ede0781f10298d80e7441099a2a5a047dc49ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Kopp?= Date: Thu, 17 Aug 2023 20:47:36 +0200 Subject: [PATCH] add merging list{Person,Org} #198 --- src/run_parczech.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/run_parczech.sh b/src/run_parczech.sh index 858eb2f..0af51b4 100755 --- a/src/run_parczech.sh +++ b/src/run_parczech.sh @@ -712,10 +712,16 @@ function consolidate() { "$2/${4}.xml" else echo "Consolidating new data $1 to $2" - echo "Merging organizations and persons is not implemented !!!" - rsync -a --backup --suffix=".${ID}" --exclude "$3" "$1/" "$2" + rsync -a --backup --suffix=".${ID}" --exclude "$3" \ + --exclude "*/ParCzech-listOrg.xml" \ + --exclude "*/ParCzech-listPerson.xml" \ + "$1/" "$2" mv "$2/${4}.xml" "$2/${4}.xml.${ID}" + mv "$2/ParCzech-listOrg.xml" "$2/ParCzech-listOrg.xml.${ID}" + mv "$2/ParCzech-listPerson.xml" "$2/ParCzech-listPerson.xml.${ID}" perl -I lib lib/ParCzech/XMLmerge.pm "$2/${4}.xml.${ID}" "$1/$3" "$2/${4}.xml" + perl -I lib lib/ParCzech/XMLmerge.pm "$2/ParCzech-listOrg.xml.${ID}" "$5/ParCzech-listOrg.xml" "$2/ParCzech-listOrg.xml" + perl -I lib lib/ParCzech/XMLmerge.pm "$2/ParCzech-listPerson.xml.${ID}" "$5/ParCzech-listPerson.xml" "$2/ParCzech-listPerson.xml" fi }