Fix gperf usage (FS#740)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Maciej Blizinski 2010-03-15 09:58:37 +01:00 committed by Julien Danjou
parent fda2c091db
commit 3d8aad10d0
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ do_h() {
typedef enum awesome_token_t {
A_TK_UNKNOWN,
`tr '[:lower:]' '[:upper:]' | sed -e "s/^[^/].*/ A_TK_&,/"`
`LC_ALL=C tr a-z A-Z | sed -e "s/^[^/].*/ A_TK_&,/"`
} awesome_token_t;
__attribute__((pure)) enum awesome_token_t a_tokenize(const char *s, int len);
@ -63,7 +63,7 @@ do_tokens() {
case "$tok" in
"") continue;;
*)
echo "$tok, A_TK_`echo $tok | tr '[:lower:]' '[:upper:]'`"
echo "$tok, A_TK_`echo $tok | LC_ALL=C tr a-z A-Z`"
;;
esac
done