summaryrefslogtreecommitdiff
path: root/bin/lo-unify-sdf
diff options
context:
space:
mode:
Diffstat (limited to 'bin/lo-unify-sdf')
-rwxr-xr-xbin/lo-unify-sdf45
1 files changed, 0 insertions, 45 deletions
diff --git a/bin/lo-unify-sdf b/bin/lo-unify-sdf
deleted file mode 100755
index a4bc5af2a..000000000
--- a/bin/lo-unify-sdf
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-
-usage()
-{
- echo "This script unifies the sdf files to be commited into l10n git repo"
- echo
- echo "Usage: ${0##*/} in [out]"
- echo
- echo "Options:"
- echo
- echo " in input file"
- echo " out output file"
-}
-
-in="$1"
-out="$2"
-tempdir=
-
-if test -z "$in" ; then
- echo "Error: Please, define input file"
- exit 1;
-fi
-
-if test ! -f "$in" ; then
- echo "Error: input file does not exist: $in"
- exit 1;
-fi
-
-if test -z "$out" ; then
- tempdir=`mktemp -D -t lo-unify-sdf-XXXXXX`
- out="$tempdir/out.sdf"
-fi
-
-echo "Cleaning $in..."
-grep -v "^[^ ]* [^ ]* [^ ]* [^ ]* [^ ]* [^ ]* [^ ]* [^ ]* [^ ]* en-US" "$in" | \
-LANG=C sort >$out
-
-dos2unix $out
-
-# no input file define, so overwrite the original file
-if test -n "$temp_out" ; then
- chmod --reference="$in" "$out"
- mv "$out" "$in"
- rm -rf "$tempdir"
-fi