From 795dd9e87e44d1c49f160cd003cdde4113ee8247 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 13 Apr 2021 17:32:05 +0300 Subject: tools: drop the .py extension --- docs/clang-format.md | 5 ----- docs/ctest-driver.md | 6 +++--- docs/project-clang-format.md | 5 +++++ 3 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 docs/clang-format.md create mode 100644 docs/project-clang-format.md (limited to 'docs') diff --git a/docs/clang-format.md b/docs/clang-format.md deleted file mode 100644 index 217b2da..0000000 --- a/docs/clang-format.md +++ /dev/null @@ -1,5 +0,0 @@ -`clang-format` all C/C++ files in the project. - - $ cd project/ - $ python3 path/to/tools/clang-format.py # Prints a diff - $ python3 path/to/tools/clang-format.py -i # Edits files in-place diff --git a/docs/ctest-driver.md b/docs/ctest-driver.md index af7c3b2..1a70f5d 100644 --- a/docs/ctest-driver.md +++ b/docs/ctest-driver.md @@ -4,10 +4,10 @@ PASS_REGULAR_EXPRESSION feature: 1. The regular expression syntax used by CMake is deficient. 2. The exit code of a test is ignored if one of the regexes matches. -`ctest-driver.py` tries to fix them. +`ctest-driver` tries to fix them. - $ python3 path/to/tools/ctest-driver.py run --pass-regex OK --fail-regex Fail -- path/to/executable arg1 arg2 + $ python3 path/to/tools/ctest-driver run --pass-regex OK --fail-regex Fail -- path/to/executable arg1 arg2 In addition, it's a cross-platform `grep`: - $ python3 path/to/tools/ctest-driver.py grep --pass-regex OK --fail-regex Fail -- path/to/logfile.log + $ python3 path/to/tools/ctest-driver grep --pass-regex OK --fail-regex Fail -- path/to/logfile.log diff --git a/docs/project-clang-format.md b/docs/project-clang-format.md new file mode 100644 index 0000000..d294730 --- /dev/null +++ b/docs/project-clang-format.md @@ -0,0 +1,5 @@ +`clang-format` all C/C++ files in the project. + + $ cd project/ + $ python3 path/to/tools/project-clang-format # Prints a diff + $ python3 path/to/tools/project-clang-format -i # Edits files in-place -- cgit v1.2.3