Commit Graph

8 Commits

Author SHA1 Message Date
Uli Schlachter 02e39eb8e0 Use tr [:lower:] [:upper:] instead of the a-z one
The 'old' tr call produced garbled output with sun's tr.

The current common/tokenize.gperf file only uses a-z, 1-5 and _. Thus the
dropped conversions don't hurt atm. If they should ever become necessary again,
we need to find another, more portable way to doing this.

Thanks to evocallaghan aka Edward O'Callaghan for trying to build awesome on
SunOS and providing some hints on how to fix it.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:46:25 +02:00
Uli Schlachter 886d62fb59 Use 'sh' instead of 'sh -e'
'sh -e' makes the shell script die if any command returns an error which isn't
caught. While this is a nice feature, this script doesn't actually need this.
Not using this shell feature makes the script more portable.

Thanks to Edward O'Callaghan aka eocallagha for stumbling upon this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:40:09 +02:00
Uli Schlachter 90d6c799ff Fix a bashism in gperf.sh
This (hopefully) fixes a bug reported by evocallaghan with ksh.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:39:48 +02:00
Uli Schlachter cf4630dbe1 Remove some useless use of cat
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:39:24 +02:00
Uli Schlachter d9c71f4e23 Fix a wrong leading space in gperf.sh's shebang
While this space doesn't hurt on any modern OS (afaik), it does break stuff
on the old ones and is non-standard. Removing it won't hurt, so...

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:39:15 +02:00
Julien Danjou f747352c84 gperf: remove -m option, not recognize by FreeBSD
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-22 17:34:20 +02:00
Pierre Habouzit 4e588743ad we want case sensitivity
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-23 14:56:40 +02:00
Pierre Habouzit c2df807ede Use gperf to tokenize some strings.
This makes the code way more readable, and also avoids a lot of strcmps.

Use it for draw_align_get_from_str as a proof of concept.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-23 07:41:22 +02:00