Build and packaging library
  • Python 48.7%
  • Makefile 37.5%
  • Shell 13.8%
Find a file
Jan Lindemann aefe983920 jw.pkg.App: Support --topdir-format

Add support for --topdir-format. The option supports several different values, affecting the console output of App wherever it knows that the output contains a reference to the projects' toplevel directory.

- "unaltered" will have it print the toplevel directory in the same format as passed to the commandline
- "absolute" will try to resolve it to an absolute path before printing

- make:XXX will return the make-varible $(XXX) instead

To implement this, the proj_dir() member function is turned into the private member function __proj_dir(), and a new member function find_dir() is supplied, with two additional parameters: search_subdirs and search_absdirs, which will try to find an existing directory relative to the toplevel directory of the given module, or in the search_absdirs list, respectively.

Command modules in cmds.projects have been updated to use the new function.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-01-26 17:58:23 +01:00
bin bin, make, scripts: Re-add files necessary for packaging jw-build 2025-11-14 11:22:50 +01:00
make jw.pkg.App: Support --topdir-format 2026-01-26 17:58:23 +01:00
scripts jw.build.cmds: Move build.cmds -> cmds.projects 2026-01-26 17:58:23 +01:00
src jw.pkg.App: Support --topdir-format 2026-01-26 17:58:23 +01:00
.gitignore Everywhere: Rename package "jw-build" to "jw-pkg" 2025-11-28 13:35:56 +01:00
HASH Release 1.0.0-157@suse-tumbleweed/x86_64 2026-01-22 00:10:39 +00:00
Makefile $(TOPDIR)/Makefile: Remove superfluous SUBDIRS 2025-11-14 13:39:52 +01:00
RELEASES Release 1.0.0-157@suse-tumbleweed/x86_64 2026-01-22 00:10:39 +00:00
VERSION Start version: 1.0.0-157 2026-01-22 00:10:13 +00:00