a5bf929f14
Add missing async keywords to jwutils.Cmd.run() reimplementations
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2020-02-10 19:49:46 +01:00
350c2147dd
process-text-files.py: Make it usable again
...
This --maxdepth / --name patch introduced broke run(). This commit
fixes that.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-25 11:44:48 +01:00
f810a7cdc1
Merge branch 'master' of ssh://git.janware.com/srv/git/jan/proj/jw-python
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-22 09:39:24 +00:00
bdb6d48f59
process-text-files.py: Support --name and --maxdepth
...
Add support for --name (globbing pattern) and --maxdepth (as in
find(1)).
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-20 11:39:40 +01:00
5578bd486a
process-text-files.py: Support --name and --maxdepth
...
Add support for --name (globbing pattern) and --maxdepth (as in
find(1)).
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-20 11:39:40 +01:00
a85f0929c6
Consistently replace def run() by async def run()
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-20 08:41:58 +01: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
109179b55e
process-text-files.py mk-indent: Add support for left-pad-match
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-17 17:25:17 +01:00
7ac9cd7a69
Add command cpp-fix-include-guard
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-16 11:37:20 +01:00
102d0c3830
process-text-files.py: Name commands more consistently
...
Commands now start with their target audience (cpp- or mk-).
Some code cleanup along the way.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-16 09:08:10 +01:00
a676ff5cdf
process-text-files.py: Implement command indent-cpp-macros
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-15 20:05:48 +01:00
6dd594d47b
Fix multiple Python 3 compatibility issues
...
Changes in Python 3 that made the code choke:
o basestring is merged into str
o print() needs parentesis
o Class inheritance syntax changed
o Abstract baseclass (ABCMeta) syntax changed
o map.iteritems() is replaced by map.items()
o Inconsistent use of tabs and spaces are no longer tolerated
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-10 16:38:59 +01:00
6eaad195a8
Fix padding after equal sign in makefiles
...
Padding should be done only if RHS is not empty.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-06 13:38:42 +01:00
586f31d06c
process-text-files.py: Add command cleanup-spaces
...
The command removes traling empty spaces from lines and trailing empty lines
from files.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-04 21:18:13 +01:00
a4b447375a
process-text-files.py: Add command indent-makefiles
...
The command is intended to reformat makefiles in a general fashion.
It currently only vertically aligns equal signs in makefiles.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-03 17:11:57 +01:00
0cb09081eb
process-text-files.py: Slightly beautify help message
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-01 14:10:16 +01:00
70117f9d34
Fix most brutal breakages introduced by commit 974a567
...
The cleanup commit 974a567 added some stub namespace-addition code to
project-text-files.py, which was never completed, but which broke all
other functionality of project-text-files.py. This commit doesn't
complete the implementation, but restores its previous functionality.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-01 13:57:51 +01:00
974a56793a
project-text-files.py: Add CmdAddCppNamespace
...
This is an old patch, tackling namespace addition. Not finished, just
a cleanup commit.
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-10-24 18:50:44 +02:00
e1974118b5
process-text-files.py: Fix file name matching
...
For some unbeknown reason, file names were compared case-invariantly
before deciding upon renaming them.
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-03-16 15:02:09 +01:00
3ea89a7812
Explicitly set python version in hashbang
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-29 22:26:06 +01:00
e0d48b2dc7
Add process-text-files.py
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-20 20:08:23 +01:00
3d93d534db
StringTree: Respect quoted quotes
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-11-22 09:34:26 +01:00
a9aadbad5a
trim-src.py: Some beautification to whitespaces
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-11-18 16:59:23 +01:00
74a27f1c19
Add conf/profile
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-11-18 15:43:49 +01:00
24ba182fa1
Add script trim-src.py
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-11-18 15:42:09 +01:00