Skip to content

Commit

Permalink
Add refactor script to replace PYTHON_EXECUTABLE with Python3_EXECUTA…
Browse files Browse the repository at this point in the history
…BLE in CMake code (TriBITSPub#610)
  • Loading branch information
bartlettroscoe committed Oct 3, 2024
1 parent f463fc5 commit ec453ee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tribits/refactoring/to-python3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# Usage:
#
# to-python3.sh <base-dir>
#
_SCRIPT_DIR=`echo $0 | sed "s/\(.*\)\/to-python3[.]sh/\1/g"`
baseDir=$1
find ${baseDir} -type f \
\( -name CMakeLists.txt -or -name "*.cmake" -or -name "*.cmake.in" -or -name "*.rst" \) \
-exec $_SCRIPT_DIR/token-replace.py -t PYTHON_EXECUTABLE -r Python3_EXECUTABLE -f {} ';'

0 comments on commit ec453ee

Please sign in to comment.