Browse Source

Utilities/Scripts: Add temporary CMAKE_BOOTSTRAP conversion script

Kyle Edwards 6 years ago
parent
commit
ad0e44a18b
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Utilities/Scripts/cmake-bootstrap-def.sh

+ 7 - 0
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)