summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2019-08-07 14:32:50 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2019-08-09 14:40:36 (GMT)
commitad0e44a18b1e54bcfac38100a13e6ce169d03099 (patch)
treea80d0c4abecb92baa9bafeab49428ee7cc50dd27
parent1996e0157826903f27f73825a01f83d53dc8fba4 (diff)
downloadCMake-ad0e44a18b1e54bcfac38100a13e6ce169d03099.zip
CMake-ad0e44a18b1e54bcfac38100a13e6ce169d03099.tar.gz
CMake-ad0e44a18b1e54bcfac38100a13e6ce169d03099.tar.bz2
Utilities/Scripts: Add temporary CMAKE_BOOTSTRAP conversion script
-rwxr-xr-xUtilities/Scripts/cmake-bootstrap-def.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/Utilities/Scripts/cmake-bootstrap-def.sh b/Utilities/Scripts/cmake-bootstrap-def.sh
new file mode 100755
index 0000000..09feded
--- /dev/null
+++ b/Utilities/Scripts/cmake-bootstrap-def.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+sed -i -e 's/!defined(CMAKE_BUILD_WITH_CMAKE)/defined(CMAKE_BOOTSTRAP)/g' \
+ -e 's/defined(CMAKE_BUILD_WITH_CMAKE)/!defined(CMAKE_BOOTSTRAP)/g' \
+ -e 's/ifndef CMAKE_BUILD_WITH_CMAKE/ifdef CMAKE_BOOTSTRAP/g' \
+ -e 's/ifdef CMAKE_BUILD_WITH_CMAKE/ifndef CMAKE_BOOTSTRAP/g' \
+ $(git ls-files Source)