aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-18 19:45:41 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-18 19:46:50 +0300
commit208cee254b93781887513c3c0e3390def202f659 (patch)
tree3f77ad6d802a32d5c7ae7ea228f0f0502888e69c /docs
parentv1.0 (diff)
downloadcmake-common-208cee254b93781887513c3c0e3390def202f659.tar.gz
cmake-common-208cee254b93781887513c3c0e3390def202f659.zip
tools: bring back the .py extension
It should help running the scripts on Windows, where the .py extension is associated with the Python interpreter.
Diffstat (limited to '')
-rw-r--r--docs/ctest-driver.md6
-rw-r--r--docs/project-clang-format.md4
2 files changed, 5 insertions, 5 deletions
diff --git a/docs/ctest-driver.md b/docs/ctest-driver.md
index 1a70f5d..af7c3b2 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` tries to fix them.
+`ctest-driver.py` tries to fix them.
- $ python3 path/to/tools/ctest-driver run --pass-regex OK --fail-regex Fail -- path/to/executable arg1 arg2
+ $ python3 path/to/tools/ctest-driver.py 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 grep --pass-regex OK --fail-regex Fail -- path/to/logfile.log
+ $ python3 path/to/tools/ctest-driver.py 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
index d294730..d0badce 100644
--- a/docs/project-clang-format.md
+++ b/docs/project-clang-format.md
@@ -1,5 +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
+ $ python3 path/to/tools/project-clang-format.py # Prints a diff
+ $ python3 path/to/tools/project-clang-format.py -i # Edits files in-place