Commit graph

68 commits

Author SHA1 Message Date
Uli Schlachter
6bb646861c Stop using gperf
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-02 19:24:39 +02:00
Maciej Blizinski
182851d29d Fix gperf usage (FS#740)
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-03-15 09:59:02 +01:00
Julien Danjou
4a28c6b219 build: dist now build .xz instead of .gz
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-26 20:03:17 +01:00
Julien Danjou
a9880a6c89 readd proper C API documentation
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Perrin "kAworu" Alexandre
319f2d55bc removed WidgetList, name_func_link_t and related function
use tokenize.gperf instead.

Signed-off-by: Perrin "kAworu" Alexandre <kaworu(a)kaworu,ch>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-17 16:22:42 +02:00
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
24b82772d2 atoms: drop useless strlen usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-18 13:37:01 +02:00
Julien Danjou
2037a053a9 layout: move layout code to Lua
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:21 +01:00
Julien Danjou
f188c10fa4 util: precompute funcname in name_func_link
This will improve search a bit.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 16:51:41 +01:00
Julien Danjou
ccc6452d49 widget: change widget initialization code
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 16:51:41 +01:00
Julien Danjou
8e65cb2037 build: do not use git dashed command
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-21 11:04:10 +01:00
Alex Cornejo
00721a15ea layout: add fair layout
Based on the original idea of Nathan Huesken, which was then implemented by
Gwenhael Le Moine, I completed and corrected the layout.

I added icons for the layout and modified the makefile and the aweseomerc.lua.in
to include the fair layout.

In the process I also decided to modify layoutgen.sh and tag.c, so that in the
future new layouts can be added without touching tag.c.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-11 13:31:28 +02:00
Julien Danjou
8e4873b3aa build: ignore lvalue
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-02 16:52:50 +02:00
Julien Danjou
2c0febaedc build: stop using dashed git commands
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-01 15:13:19 +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
Julien Danjou
c2f8275bf8 client: deprecate client_get() and client_set()
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-12 12:17:19 +02:00
Julien Danjou
5473c31737 awful,tabulous: fix copyright for luadoc
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-04 16:41:23 +02:00
Julien Danjou
f278c02a3d build: fake C api as module
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-04 14:35:42 +02:00
Julien Danjou
7c5ab691c8 bui;d fix dist script
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-01 16:15:06 +02:00
Julien Danjou
1a8467ff28 build: dist create bz2 too
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-29 16:13:27 +02:00
Julien Danjou
b3a16bc6ad build: add support for __index in widgets
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-02 17:57:16 +02:00
Julien Danjou
414e227a1a build: add support for documentation of __index
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-02 10:32:35 +02:00
Julien Danjou
db49685413 atoms: autogenerate atom list
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-30 20:05:53 +02:00
Julien Danjou
45b0a2df80 lua: replace .new() by __call meth
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-30 14:11:54 +02:00
Julien Danjou
4bf6d2df62 widgets: add documentation support
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-26 23:32:33 +02:00
Julien Danjou
fc509e4d16 lua-src: fix a bug if l is nil, add , as optional
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-26 22:44:07 +02:00
Michael Gehring
388dbb01c1 build: implement make dist using git-archive
Instead of jumping through hoops to get the ignore list
right just use git-archive to get a clean source tarball.
2008-06-24 08:58:04 +02:00
Julien Danjou
0b93318836 build: fix argument generation
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-23 18:53:45 +02:00
Michael Gehring
27bc445664 cmake: use luadoc for functions exported from C
Documenting half of the Lua API in the awesomerc manpage and the other
half with luadoc, doesn't make much sense. I modified the output of
gendoc.lua to something that looks like lua with luadoc markup. That
file can then be processed by luadoc and we have all Lua documentation in
one place.

And yes, we're now pulling custom doxygen tags out of C source code to
generate annotated lua source code we never use, which is then mangled
again by luadoc to spit out a set of html files.
2008-06-23 18:43:05 +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
Julien Danjou
41b4214d18 build: fix bashisms
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-22 22:15:37 +02:00
Michael Gehring
7448914304 cmake: remove old build-utils 2008-06-22 22:13:07 +02:00
Michael Gehring
426d2fee9e cmake: update git version every build 2008-06-22 22:13:06 +02:00
Michael Gehring
276f5f8849 [doxygen] Add \lvalue and convert existing doc.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-11 07:36:34 +02:00
Julien Danjou
4a07bc578f [build] Fix gendoc spaces
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-10 16:44:47 +02:00
Michael Gehring
9b2a5be57f adapt gendoc.lua to work with the new lua commands
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-09 08:49:00 +02:00
Julien Danjou
c148b378cf [build] Replace $() with ``
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-08 09:35:41 +02:00
Julien Danjou
c12b1e6b89 [build] Fix a bug in function name identifying
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-28 10:13:27 +02:00
Julien Danjou
96f2da3505 [build] List all function in manpage
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-26 20:24:30 +02:00
Julien Danjou
51e72f1d68 [build] Print a newline after printing comments
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-26 20:17:15 +02:00
Julien Danjou
be44700669 [doc] Add new Lua based documentation generator for API
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-26 15:25:40 +02:00
Julien Danjou
c822a9ccf1 [widget] Rename WidgetConstructor to widget_constructor_t
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-25 14:07:01 +02:00
Julien Danjou
0142f0efc9 [layout] Rename LayoutArrange to layout_t
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-23 15:11:59 +02:00
Julien Danjou
1f046b3c9f [everything] Switch from libconfuse to Lua
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-20 18:01:15 +02:00
Julien Danjou
4c89bc0d0c [uicb] Stop autogenerating uicb list
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-04 12:40:14 +02:00