locale: adapt helper scripts to current compilers

Origin commit data
------------------
Branch: ni/coolstream
Commit: 4b03fa98ba
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-12-31 (Mon, 31 Dec 2012)


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

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-12-31 19:13:48 +01:00
parent a356ac9148
commit 451901ebaa
2 changed files with 6 additions and 4 deletions

View File

@@ -27,14 +27,15 @@ cat > locals.h <<EOH
typedef enum
{
NONEXISTANT_LOCALE,
EOH
printf "\tNONEXISTANT_LOCALE" >> locals.h
while read id; do
echo $'\t'"LOCALE_$id," >> locals.h;
printf ",\n\tLOCALE_$id" >> locals.h;
done
cat >> locals.h <<EOF
} neutrino_locale_t;
#endif
EOF

View File

@@ -27,14 +27,15 @@ cat > locals_intern.h <<EOH
const char * locale_real_names[] =
{
"INTERNAL ERROR - PLEASE REPORT",
EOH
printf "\t\"INTERNAL ERROR - PLEASE REPORT\"" >> locals_intern.h
while read id; do
echo $'\t'"\"$id\"," >> locals_intern.h;
printf ",\n\t\"$id\"" >> locals_intern.h
done
cat >> locals_intern.h <<EOF
};
#endif
EOF