summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)