From 83343c59c9e54b74b7343c8b03f8c041d3e9cdd8 Mon Sep 17 00:00:00 2001
From: Andy Cedilnik <andy.cedilnik@kitware.com>
Date: Wed, 9 Mar 2005 15:51:30 -0500
Subject: [PATCH] BUG: Remove awk, remove problems and add full spaces in the
 path support

---
 bootstrap | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bootstrap b/bootstrap
index e90c889380..426d804d4e 100755
--- a/bootstrap
+++ b/bootstrap
@@ -878,8 +878,9 @@ for a in ${CMAKE_CXX_SOURCES} ${CMAKE_C_SOURCES} ${KWSYS_CXX_SOURCES} ${KWSYS_C_
 done
 
 # Generate dependencies for cmBootstrapCommands.cxx
-cmBootstrapCommandsDepsDir=`cmake_escape "${cmake_source_dir}/Source/"`
-cmBootstrapCommandsDeps=`grep "#include.*cm[^.]*.cxx" "${cmake_source_dir}/Source/cmBootstrapCommands.cxx" | sed "s/.* \"\(.*\)\"/\1/" | awk "{ print \"${cmBootstrapCommandsDepsDir}\" \\$1}"`
+for file in `grep "#include.*cm[^.]*.cxx" "${cmake_source_dir}/Source/cmBootstrapCommands.cxx" | sed "s/.* \"\(.*\)\"/\1/"`; do
+  cmBootstrapCommandsDeps="${cmBootstrapCommandsDeps} `cmake_escape "${cmake_source_dir}/Source/$file"`"
+done
 cmBootstrapCommandsDeps=`echo $cmBootstrapCommandsDeps`
 
 if [ "x${cmake_ansi_cxx_flags}" != "x" ]; then
-- 
GitLab