Commit graph

14 commits

Author SHA1 Message Date
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