From a45b1a73240ff4505022dac654bc3944411bfc2d Mon Sep 17 00:00:00 2001 From: piernov Date: Wed, 22 Feb 2012 17:20:53 +0100 Subject: gconf dans extra --- gconf/gconf-merge-schema | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 gconf/gconf-merge-schema (limited to 'gconf/gconf-merge-schema') 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 '' > "$OUTFILE" -echo '' >> "$OUTFILE" - -while [ "$1" ]; do - if [ -f "$1" ]; then - sed -e '/||g' \ - -e 's|||g' \ - -e 's|||g' \ - -e 's|||g' "$1" >> "$OUTFILE" - fi - shift -done - -echo '' >> "$OUTFILE" -if [ "$DOMAIN" != "" ]; then - sed -ri "s/^([[:space:]]*)()/\1$DOMAIN<\/gettext_domain>\n\1\2/; /^[[:space:]]*[[:space:]]*\$/ d; /^$/d; s/<\/schema>$/&\n/" "$OUTFILE" -fi -- cgit v1.2.3-70-g09d2