From ad0e44a18b1e54bcfac38100a13e6ce169d03099 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Wed, 7 Aug 2019 10:32:50 -0400 Subject: Utilities/Scripts: Add temporary CMAKE_BOOTSTRAP conversion script --- Utilities/Scripts/cmake-bootstrap-def.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 Utilities/Scripts/cmake-bootstrap-def.sh 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) -- cgit v0.12