locale: rework helperscripts

Origin commit data
------------------
Branch: ni/coolstream
Commit: ca88052c14
Author: vanhofen <vanhofen@gmx.de>
Date: 2012-10-24 (Wed, 24 Oct 2012)

Origin message was:
------------------
- locale: rework helperscripts

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2012-10-24 16:08:52 +02:00
parent 127e08795d
commit 6da9177fb1
2 changed files with 10 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# 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
cat > locals.h <<EOH
#ifndef __locals__
#define __locals__
@@ -28,15 +28,12 @@ cat > locals.h <<EOF
typedef enum
{
NONEXISTANT_LOCALE,
EOF
EOH
while read id; do
if [[ \
"$id" != "CAM_WRONG" \
]] ;
then
echo $'\t'"LOCALE_$id," >> locals.h;
fi
echo $'\t'"LOCALE_$id," >> locals.h;
done
cat >> locals.h <<EOF
} neutrino_locale_t;
#endif