summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/gconf/gconf-merge-schema
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2008-12-01 23:48:10 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2008-12-01 23:48:10 (GMT)
commit575bd0829fce6f7582aefca086e1894b63812ef8 (patch)
tree1b66d798131ebd448034b30a2d7d6111aabf4c52 /abs/core-testing/gconf/gconf-merge-schema
parent466412d4bdf5beb0645eced2d064df5e15f9b76b (diff)
downloadlinhes_pkgbuild-575bd0829fce6f7582aefca086e1894b63812ef8.zip
linhes_pkgbuild-575bd0829fce6f7582aefca086e1894b63812ef8.tar.gz
linhes_pkgbuild-575bd0829fce6f7582aefca086e1894b63812ef8.tar.bz2
Emulators and deps.
Signed-off-by: Cecil Hugh Watson <knoppmyth@gmail.com>
Diffstat (limited to 'abs/core-testing/gconf/gconf-merge-schema')
-rwxr-xr-xabs/core-testing/gconf/gconf-merge-schema22
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/core-testing/gconf/gconf-merge-schema b/abs/core-testing/gconf/gconf-merge-schema
new file mode 100755
index 0000000..323e0ec
--- /dev/null
+++ b/abs/core-testing/gconf/gconf-merge-schema
@@ -0,0 +1,22 @@
+#!/bin/sh
+if [ ! "$1" -a ! "$2" ]; then
+ echo "Usage: $0 output.schemas file1.schemas [file2.schemas [...]]"
+ exit 1
+fi
+
+OUTFILE="$1"
+shift
+
+echo '<?xml version="1.0"?>' > "$OUTFILE"
+echo '<gconfschemafile><schemalist>' >> "$OUTFILE"
+
+while [ "$1" ]; do
+ if [ -f "$1" ]; then
+ sed -e '/<?xml/d' -e 's|<gconfschemafile>||g' -e 's|</gconfschemafile>||g' \
+ -e 's|<schemalist>||g' -e 's|</schemalist>||g' \
+ "$1" >> "$OUTFILE"
+ fi
+ shift
+done
+
+echo '</schemalist></gconfschemafile>' >> "$OUTFILE"