summaryrefslogtreecommitdiffstats
path: root/gconf/gconf-merge-schema
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2012-02-22 17:20:53 +0100
committerpiernov <piernov@piernov.org>2012-02-22 17:20:53 +0100
commita45b1a73240ff4505022dac654bc3944411bfc2d (patch)
tree7c75dbf735efed8d6dce7443aa91e2b4b631fc25 /gconf/gconf-merge-schema
parente79e1122d6de9845cb6170e3182c2f61fb2abb8f (diff)
downloadgnome3-a45b1a73240ff4505022dac654bc3944411bfc2d.tar.gz
gnome3-a45b1a73240ff4505022dac654bc3944411bfc2d.tar.bz2
gnome3-a45b1a73240ff4505022dac654bc3944411bfc2d.tar.xz
gnome3-a45b1a73240ff4505022dac654bc3944411bfc2d.zip
gconf dans extra
Diffstat (limited to 'gconf/gconf-merge-schema')
-rw-r--r--gconf/gconf-merge-schema34
1 files changed, 0 insertions, 34 deletions
diff --git a/gconf/gconf-merge-schema b/gconf/gconf-merge-schema
deleted file mode 100644
index 992c162..0000000
--- a/gconf/gconf-merge-schema
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-if [ ! "$1" -a ! "$2" ]; then
- echo "Usage: $0 output.schemas [--domain gettextdomain] file1.schemas [file2.schemas [...]]"
- exit 1
-fi
-
-OUTFILE="$1"
-DOMAIN=""
-shift
-
-if [ "$1" = "--domain" ]; then
- shift
- DOMAIN=$1
- shift
-fi
-
-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"
-if [ "$DOMAIN" != "" ]; then
- sed -ri "s/^([[:space:]]*)(<locale name=\"C\">)/\1<gettext_domain>$DOMAIN<\/gettext_domain>\n\1\2/; /^[[:space:]]*<locale name=\"[^C]/,/^[[:space:]]*<\/locale>[[:space:]]*\$/ d; /^$/d; s/<\/schema>$/&\n/" "$OUTFILE"
-fi