d48171f981
Replace jw-build by jw-pkg
...
Replace the jw-build build system by the jw-pkg build system.
Signed-off-by: Jan Lindemann <jan@janware.com>
2025-11-28 14:22:42 +01:00
bb247bff3d
proj.mk: Support JWBDIR_NAME and JWBDIR_SEARCH_PATH
...
- Streamline proj.mk over all projects a little
- Turn the string "jw-build" into a variable which can be overridden from the
environment.
- Add support for JWBDIR_SEARCH_PATH, also overridable from the environment.
Signed-off-by: Jan Lindemann <jan@janware.com>
2025-11-05 10:42:54 +01:00
e03491bee3
project.conf: Fix: Add python3-ldap
...
auth.ldap requires an LDAP client, which is not reflected in the package's dependencies, fix that.
Signed-off-by: Jan Lindemann <jan@janware.com>
2025-07-16 20:16:17 +02:00
1e16c0ffb1
Cmds: Add argcomplete support
...
argcomplete takes the arguments added to argparse, and builds bash completion with it. Add it to all Cmds based executables.
Signed-off-by: Jan Lindemann <jan@janware.com>
2025-07-11 10:43:47 +02:00
9c13381e7a
cast.cast_str_to_timedelta(): Add conversion method
...
Make cast.from_str() accept time strings.
Signed-off-by: Jan Lindemann <jan@janware.com>
2025-05-28 11:12:49 +02:00
2811d99c30
project.conf: Build devel subpackage
...
-devel subpackge is needed to build a couple of other packages, so build it.
Signed-off-by: Jan Lindemann <jan@janware.com>
2025-02-20 19:14:31 +00:00
be4389a1f0
project.conf: Fix syntax
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-05-15 20:44:44 +00:00
952bf4a4e1
Fix Python errors reported by mypy
...
This commit fixes Python errors and warnings reported by static type checking with mypy.
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-04-10 14:17:15 +02:00
ad9eee07d4
Change dependencies python-magic|termcolor -> python3
...
This breaks on both openSUSE Tumbleweed and Ubuntu 18.04.
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-02-10 13:54:42 +00:00
8a74e030dc
Add python-termcolor to package deps
...
Also fix package group (Development/Libraries/Python).
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-07 20:13:08 +01:00
13b58c2fa0
Change license from proprietary to LGPLv2
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-07 14:13:48 +00:00
1f122fae82
Rename the MODDIR makefile variable to JWBDIR
...
Rename the omnipresent MODDIR variable to JWBDIR, since that's more to the point.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-29 23:32:20 +02:00
8d72fabe28
$(TOPDIR)/make: Beautify makefile indendation
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-25 22:56:59 +02:00
9a78398202
Rename variable PROJECTS_DIR to DEV_PROJECTS_DIR in proj.mk
...
PROJECTS_DIR is a final version of where the projects to be compiled against are. DEV_PROJECTS_DIR is merely a candidate, used in proj.mk, currently only there.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-25 21:15:32 +02:00
e6e64d09fd
proj.mk: Allow MODDIR to be overridden from the environment
...
Make the MODDIR definition in proj.mk depend on the environment: - Change "=" assignment to "?=" - Prepend $(BUILD_TOOLS_PREFIX) to /opt/jw-build
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-19 13:18:54 +02:00
101bad0617
$(MODDIR)/make/defs.mk: Set HDRDIR_SCOPE_PREFIX = $(PROJECT)
...
Set HDRDIR_SCOPE_PREFIX = $(PROJECT) by default.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-02-27 17:40:39 +01:00
bfa30d5d20
Rename CVS_PROJ_DIR to PROJECTS_DIR
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-12-16 11:42:57 +01:00
cf60b29281
Add python-magic to pkg.os.requires
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-11-23 15:05:18 +01:00
c2c409ed4b
Move grammar-related stuff into package jw-grammar
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-11-12 16:08:26 +01:00
dafe6d34b2
generate-flex-bison.mk: Add dependency on config file
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-11-05 16:36:08 +01:00
3cba245b77
grammar.py and friends: Improve line numbers and headers
...
Line numbers of parsed input are now automatically maintained. More needed data structures are now automatically created in the API header file.
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-11-03 12:54:19 +01:00
a3a8313ce8
grammar.py and friends: Make list parsing run through
...
First time parsing doesn't error out with a syntax error. No usable AST is produced, strings are not returned from lexer, and AST lists aren't lists, really.
TEXT:="Hello world!"; had to be excluded from the example, because I don't get how this could be parsed with the given syntax. There's a special sequence "all visible characters", but any lexer regex I could think of will also match the types defining "alphabetic character" and return the respective tokens (e.g. T_A) or vice-versa, depending on the order in the lexer input file. I suppose, the only sensible way to handle this, is to define "all visible characters" by defining the tokens for the missing characters, and then use them along T_A ... T_Z or their derived types.
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-11-02 13:47:19 +01:00
1a7a34f73c
grammar.py and friends: Implement config file support
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-11-02 08:54:39 +01:00
16ce7abd93
grammar.py and friends: Make test/grammar compile and start
...
Doesn't successfully parse grammartest.code, yet, it errors out with a syntax error on whitespace. But at least it compiles and starts.
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-10-30 13:05:22 +01:00
8c5934725c
grammar.py: Add support for --irrelevant-symbols
...
Arguments to --irrelevant-symbols are not meant to be represented in the AST resulting from parsing.
Also, add pad() to misc.py.
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-10-30 10:00:25 +01:00
6297f10f55
grammar.py et al: Centralize more code
...
More code is removed from the special parser directories and centralized into grammar.py, Cmd.py, and generate-flex-bison.mk.
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-10-29 18:25:55 +01:00
5755d14d84
initial checkin
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-24 12:19:34 +02:00