Fix gperf usage (FS#740)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
9f056716b9
commit
182851d29d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue