summaryrefslogtreecommitdiffstats
path: root/extra/gconf/gconf-merge-schema
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-10-23 17:19:53 +0200
committertnut <thierryn1 at hispeed dot ch>2010-10-23 17:19:53 +0200
commit532c1eab7b9f903c25cd3a70219099a54c184404 (patch)
tree6aa496cbf6e952f08a1cd897f80704d953263ba5 /extra/gconf/gconf-merge-schema
parent25faada8813b3992dba2e0c85d98a2b4d3d2d3a2 (diff)
downloadnutyx-pakxe-532c1eab7b9f903c25cd3a70219099a54c184404.tar.gz
nutyx-pakxe-532c1eab7b9f903c25cd3a70219099a54c184404.tar.bz2
nutyx-pakxe-532c1eab7b9f903c25cd3a70219099a54c184404.tar.xz
nutyx-pakxe-532c1eab7b9f903c25cd3a70219099a54c184404.zip
gconf, port nettoyé
Diffstat (limited to 'extra/gconf/gconf-merge-schema')
-rw-r--r--extra/gconf/gconf-merge-schema34
1 files changed, 0 insertions, 34 deletions
diff --git a/extra/gconf/gconf-merge-schema b/extra/gconf/gconf-merge-schema
deleted file mode 100644
index 992c162e6..000000000
--- a/extra/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