From 1f641814b2bfbbf2dc3347e11a3fe901bfdf1efc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 18:35:33 +0200 Subject: Adding debian version 2.5.13+dfsg-5. Signed-off-by: Daniel Baumann --- debian/schema/compare-schema | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 debian/schema/compare-schema (limited to 'debian/schema/compare-schema') diff --git a/debian/schema/compare-schema b/debian/schema/compare-schema new file mode 100755 index 0000000..ce6b80c --- /dev/null +++ b/debian/schema/compare-schema @@ -0,0 +1,26 @@ +#!/bin/sh +# +# Compare the stripped versions of the schema with the unmodified versions +# from the source as distributed upstream and find any non-comment changes +# so that our stripped versions can be updated. +# +# Takes the directory containing our stripped schema and the directory +# containing the upstream schema. Uses the first directory as a working +# area. + +set -e + +ours="$1" +theirs="$2" +if [ -z "$ours" ] || [ -z "$theirs" ] ; then + echo 'Usage: compare-schema ' >&2 + exit 1 +fi + +cd $ours +for schema in *.schema *.ldif ; do + grep -v '^#' "$schema" | grep -v '^ *$' > "${schema}.debian" + grep -v '^#' "$theirs/$schema" | grep -v '^ *$' > "${schema}.upstream" + diff -u "${schema}.debian" "${schema}.upstream" + rm "${schema}.debian" "${schema}.upstream" +done -- cgit v1.2.3