From c2f5ae360ee4d77e55b3e65e60dc4f349826f777 Mon Sep 17 00:00:00 2001 From: Suchita Lad Date: Tue, 19 Nov 2024 17:44:21 +0530 Subject: Added geometry.xsl to get sourcepoint and targetpoint --- blocks/eda-frontend/public/geometry.xsl | 268 ++++++++++++++++++++++++++++++++ blocks/xcos2xml/replacesplitblocks.sh | 6 + 2 files changed, 274 insertions(+) create mode 100644 blocks/eda-frontend/public/geometry.xsl diff --git a/blocks/eda-frontend/public/geometry.xsl b/blocks/eda-frontend/public/geometry.xsl new file mode 100644 index 00000000..b98b3d21 --- /dev/null +++ b/blocks/eda-frontend/public/geometry.xsl @@ -0,0 +1,268 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/blocks/xcos2xml/replacesplitblocks.sh b/blocks/xcos2xml/replacesplitblocks.sh index d703b6fa..4502bf69 100755 --- a/blocks/xcos2xml/replacesplitblocks.sh +++ b/blocks/xcos2xml/replacesplitblocks.sh @@ -91,6 +91,12 @@ done xsltproc "$XSL" "$INPUT1" > "$TMPFILE1" xmllint --format "$TMPFILE1" > "$TMPFILE2" +INPUT1="$BASE-old.xml" +cp -f "$TMPFILE2" "$INPUT1" + + +xsltproc "eda-frontend/public/geometry.xsl" "$INPUT1" > "$TMPFILE1" +xmllint --format "$TMPFILE1" > "$TMPFILE2" cp -f "$TMPFILE2" "$TMPFILE1" exit 0 -- cgit