mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
locale: adapt helper scripts to current compilers
This commit is contained in:
@@ -27,14 +27,15 @@ cat > locals.h <<EOH
|
|||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
NONEXISTANT_LOCALE,
|
|
||||||
EOH
|
EOH
|
||||||
|
printf "\tNONEXISTANT_LOCALE" >> locals.h
|
||||||
|
|
||||||
while read id; do
|
while read id; do
|
||||||
echo $'\t'"LOCALE_$id," >> locals.h;
|
printf ",\n\tLOCALE_$id" >> locals.h;
|
||||||
done
|
done
|
||||||
|
|
||||||
cat >> locals.h <<EOF
|
cat >> locals.h <<EOF
|
||||||
|
|
||||||
} neutrino_locale_t;
|
} neutrino_locale_t;
|
||||||
#endif
|
#endif
|
||||||
EOF
|
EOF
|
||||||
|
@@ -27,14 +27,15 @@ cat > locals_intern.h <<EOH
|
|||||||
|
|
||||||
const char * locale_real_names[] =
|
const char * locale_real_names[] =
|
||||||
{
|
{
|
||||||
"INTERNAL ERROR - PLEASE REPORT",
|
|
||||||
EOH
|
EOH
|
||||||
|
printf "\t\"INTERNAL ERROR - PLEASE REPORT\"" >> locals_intern.h
|
||||||
|
|
||||||
while read id; do
|
while read id; do
|
||||||
echo $'\t'"\"$id\"," >> locals_intern.h;
|
printf ",\n\t\"$id\"" >> locals_intern.h
|
||||||
done
|
done
|
||||||
|
|
||||||
cat >> locals_intern.h <<EOF
|
cat >> locals_intern.h <<EOF
|
||||||
|
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
EOF
|
EOF
|
||||||
|
Reference in New Issue
Block a user