mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
- locale: move scripts to subdir 'helpers/'
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
@@ -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 <<EOF
|
||||
#ifndef __locals__
|
||||
#define __locals__
|
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# usage: cut -d' ' -f1 english.locale | LC_ALL=C sort | uniq | ./create.locals_intern.h
|
||||
# usage: cut -d' ' -f1 english.locale | LC_ALL=C sort | uniq | ./helpers/create-locals_intern.h
|
||||
cat > locals_intern.h <<EOF
|
||||
#ifndef __locals_intern__
|
||||
#define __locals_intern__
|
Reference in New Issue
Block a user