diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2008-12-11 01:30:53 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2008-12-11 01:30:53 (GMT) |
commit | 8417e5e3b118ed9e12563a3d4fceeb38b9e73d4f (patch) | |
tree | 99edff3d756441a12087ecd5053d9ca60536beff /abs/extra-testing/gconf/gconf-merge-schema | |
parent | e649efa24662af962e6cbd7b9ece1bdd8f6a9340 (diff) | |
download | linhes_pkgbuild-8417e5e3b118ed9e12563a3d4fceeb38b9e73d4f.zip linhes_pkgbuild-8417e5e3b118ed9e12563a3d4fceeb38b9e73d4f.tar.gz linhes_pkgbuild-8417e5e3b118ed9e12563a3d4fceeb38b9e73d4f.tar.bz2 |
Deps for emulators and Miro.
Diffstat (limited to 'abs/extra-testing/gconf/gconf-merge-schema')
-rwxr-xr-x | abs/extra-testing/gconf/gconf-merge-schema | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/extra-testing/gconf/gconf-merge-schema b/abs/extra-testing/gconf/gconf-merge-schema new file mode 100755 index 0000000..323e0ec --- /dev/null +++ b/abs/extra-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" |