summaryrefslogtreecommitdiffstats
path: root/xml/version-diff.sh.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:39:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:39:28 +0000
commit924f5ea83e48277e014ebf0d19a27187cb93e2f7 (patch)
tree75920a275bba045f6d108204562c218a9a26ea15 /xml/version-diff.sh.in
parentAdding upstream version 2.1.7. (diff)
downloadpacemaker-upstream.tar.xz
pacemaker-upstream.zip
Adding upstream version 2.1.8~rc1.upstream/2.1.8_rc1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'xml/version-diff.sh.in')
-rw-r--r--xml/version-diff.sh.in60
1 files changed, 0 insertions, 60 deletions
diff --git a/xml/version-diff.sh.in b/xml/version-diff.sh.in
deleted file mode 100644
index 1ece3b3..0000000
--- a/xml/version-diff.sh.in
+++ /dev/null
@@ -1,60 +0,0 @@
-#!@BASH_PATH@
-#
-# Copyright 2016-2023 the Pacemaker project contributors
-#
-# The version control history for this file may have further details.
-#
-# This source code is licensed under the GNU General Public License version 2
-# or later (GPLv2+) WITHOUT ANY WARRANTY.
-#
-
-# diff fails with ec=2 if no predecessor is found;
-# this uses '=' GNU extension to sed, if that's not available,
-# one can use: hline=`echo "$${p}" | grep -Fn "$${hunk}" | cut -d: -f1`;
-# XXX: use line information from hunk to avoid "not detected" for ambiguity
-for p in $*; do
- set $(echo "$p" | tr '-' ' ')
- echo "### *-$2.rng vs. predecessor"
-
- for v in *-"$2".rng; do
- echo "#### $v vs. predecessor"
-
- b=$(echo "$v" | cut -d- -f1)
- old=$(./best-match.sh "$b" "$1")
- p=$(diff -u "$old" "$v" 2>/dev/null)
-
- case $? in
- 1)
- echo "$p" | sed -n -e '/^@@ /!d;=;p' -e ':l;n;/^\([- ]\|+.*<[^ />]\+\([^/>]\+="ID\|>$$\)\)/bl;s/^[+ ]\(.*\)/\1/p' |
- while read -r hline; do
- if read -r h; then
- read -r i
- else
- break
- fi
-
- iline=$(grep -Fn "$i" "$v" | cut -d: -f1)
-
- if [ "$(echo "$iline" | wc -l)" = "1" ]; then
- ctxt=$({ sed -n -e "1,$((iline - 1))p" "$v"
- echo "<inject id=\"GOAL\"/>$i"
- sed -n -e "$((iline + 1)),$ p" "$v"
- } | xsltproc --param skip 1 context-of.xsl -)
- else
- ctxt="(not detected)"
- fi
-
- echo "$p" | sed -n -e "$((hline - 2)),$hline!d" -e '/^\(+++\|---\)/p'
- echo "$h context: $ctxt"
- echo "$p" | sed -n -e "1,${hline}d" -e '/^\(---\|@@ \)/be;p;d;:e;n;be'
- done
-
- ;;
-
- 2)
- echo "##### $v has no predecessor"
- ;;
-
- esac
- done
-done