From 8f54d552d3e58f3fddf3e9390da4904c229b4f7e Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 24 Oct 2012 15:45:57 +0200 Subject: [PATCH] locale: move scripts to subdir 'helpers/' Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/f0bfe2167c3c4f84e0e810ce7b58632a713101f4 Author: vanhofen Date: 2012-10-24 (Wed, 24 Oct 2012) Origin message was: ------------------ - locale: move scripts to subdir 'helpers/' ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- data/locale/Makefile.am | 4 ++-- data/locale/_readme.txt | 4 ++-- data/locale/{check.locale.files => helpers/check-locale} | 0 .../{create-locals-update.pl => helpers/create-locals-work} | 2 +- data/locale/{create.locals.h => helpers/create-locals.h} | 2 +- .../create-locals_intern.h} | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) rename data/locale/{check.locale.files => helpers/check-locale} (100%) rename data/locale/{create-locals-update.pl => helpers/create-locals-work} (95%) rename data/locale/{create.locals.h => helpers/create-locals.h} (93%) rename data/locale/{create.locals_intern.h => helpers/create-locals_intern.h} (97%) diff --git a/data/locale/Makefile.am b/data/locale/Makefile.am index a88f19957..0199402f3 100644 --- a/data/locale/Makefile.am +++ b/data/locale/Makefile.am @@ -43,11 +43,11 @@ ordercheck: $(top_srcdir)/data/locale/$(master.locale) locals.h: ordercheck cut -d' ' -f1 $(top_srcdir)/data/locale/$(master.locale) | LC_ALL=C sort | uniq | tr [:lower:] [:upper:] | tr \. \_ | tr \- \_ | tr -d \? | \ - $(top_srcdir)/data/locale/create.locals.h + $(top_srcdir)/data/locale/helpers/create-locals.h locals_intern.h: ordercheck cut -d' ' -f1 $(top_srcdir)/data/locale/$(master.locale) | LC_ALL=C sort | uniq | \ - $(top_srcdir)/data/locale/create.locals_intern.h + $(top_srcdir)/data/locale/helpers/create-locals_intern.h check: locals.h locals_intern.h diff locals.h $(top_srcdir)/src/system diff --git a/data/locale/_readme.txt b/data/locale/_readme.txt index ca063f2fb..364b955ea 100644 --- a/data/locale/_readme.txt +++ b/data/locale/_readme.txt @@ -17,7 +17,7 @@ english.locale is considered the master file. Verfication of .locale files: ----------------------------- -Use the check.locale.files shell script for detecting +Use ./helpers/check-locale for detecting in master file - violations of the sorting order, - missing translations and - legacy strings. @@ -51,7 +51,7 @@ Or use for item 3-6 'make locals' 8.) To the extent possible, update other locale file. For this, the -Perl-script create-locals-update.pl may be useful. +Perl-script ./helpers/create-locals-work may be useful. 9.) If committing the changes to Git, commit both the involved diff --git a/data/locale/check.locale.files b/data/locale/helpers/check-locale similarity index 100% rename from data/locale/check.locale.files rename to data/locale/helpers/check-locale diff --git a/data/locale/create-locals-update.pl b/data/locale/helpers/create-locals-work similarity index 95% rename from data/locale/create-locals-update.pl rename to data/locale/helpers/create-locals-work index 91c0705f9..9dfe879b0 100755 --- a/data/locale/create-locals-update.pl +++ b/data/locale/helpers/create-locals-work @@ -9,7 +9,7 @@ $masterfilename = "english.locale"; -$#ARGV == 0 || die("Usage: create-locals-update.pl file.locale."); +$#ARGV == 0 || die("Usage: create-locals-work file.locale."); $no_errors = 0; $last_was_ok = 1; diff --git a/data/locale/create.locals.h b/data/locale/helpers/create-locals.h similarity index 93% rename from data/locale/create.locals.h rename to data/locale/helpers/create-locals.h index 11fe2fd20..efad5d9d8 100755 --- a/data/locale/create.locals.h +++ b/data/locale/helpers/create-locals.h @@ -1,5 +1,5 @@ #!/bin/bash -# usage: cut -d' ' -f1 english.locale | LC_ALL=C sort | uniq | tr [:lower:] [:upper:] | tr \. \_ | tr \- \_ | tr -d \? | ./create.locals.h +# usage: cut -d' ' -f1 english.locale | LC_ALL=C sort | uniq | tr [:lower:] [:upper:] | tr \. \_ | tr \- \_ | tr -d \? | ./helpers/create-locals.h cat > locals.h < locals_intern.h <