ENH: remove if0
This commit is contained in:
parent
adf160029c
commit
3832369ffa
|
@ -13,7 +13,6 @@ if(NOT DEFINED MAKE)
|
||||||
message(FATAL_ERROR "MAKE must be specified with -DMAKE=\"make -j2\"")
|
message(FATAL_ERROR "MAKE must be specified with -DMAKE=\"make -j2\"")
|
||||||
endif(NOT DEFINED MAKE)
|
endif(NOT DEFINED MAKE)
|
||||||
|
|
||||||
|
|
||||||
message("Creating CMake release ${CMAKE_VERSION} on ${HOST} with parallel = ${PROCESSORS}")
|
message("Creating CMake release ${CMAKE_VERSION} on ${HOST} with parallel = ${PROCESSORS}")
|
||||||
|
|
||||||
# define a macro to run a remote command
|
# define a macro to run a remote command
|
||||||
|
@ -30,7 +29,6 @@ macro(remote_command comment command)
|
||||||
endif(${result} GREATER 0)
|
endif(${result} GREATER 0)
|
||||||
endmacro(remote_command)
|
endmacro(remote_command)
|
||||||
|
|
||||||
if(0)
|
|
||||||
# remove and create a directory to work with
|
# remove and create a directory to work with
|
||||||
remote_command(
|
remote_command(
|
||||||
"remove and create working directory ~/CMakeReleaseDirectory"
|
"remove and create working directory ~/CMakeReleaseDirectory"
|
||||||
|
@ -47,7 +45,6 @@ remote_command(
|
||||||
remote_command(
|
remote_command(
|
||||||
"Create a directory to build in"
|
"Create a directory to build in"
|
||||||
"rm -rf ~/CMakeReleaseDirectory/${CMAKE_VERSION}-build && mkdir ~/CMakeReleaseDirectory/${CMAKE_VERSION}-build")
|
"rm -rf ~/CMakeReleaseDirectory/${CMAKE_VERSION}-build && mkdir ~/CMakeReleaseDirectory/${CMAKE_VERSION}-build")
|
||||||
|
|
||||||
# now bootstrap cmake
|
# now bootstrap cmake
|
||||||
remote_command(
|
remote_command(
|
||||||
"Run cmake bootstrap --parallel=${PROCESSORS}"
|
"Run cmake bootstrap --parallel=${PROCESSORS}"
|
||||||
|
@ -73,8 +70,6 @@ remote_command(
|
||||||
"Package cmake"
|
"Package cmake"
|
||||||
"cd ~/CMakeReleaseDirectory/${CMAKE_VERSION}-build && ./bin/cpack -G TGZ")
|
"cd ~/CMakeReleaseDirectory/${CMAKE_VERSION}-build && ./bin/cpack -G TGZ")
|
||||||
|
|
||||||
endif(0)
|
|
||||||
|
|
||||||
message("copy the .gz file back from the machine")
|
message("copy the .gz file back from the machine")
|
||||||
execute_process(COMMAND scp ${HOST}:CMakeReleaseDirectory/${CMAKE_VERSION}-build/*.gz .
|
execute_process(COMMAND scp ${HOST}:CMakeReleaseDirectory/${CMAKE_VERSION}-build/*.gz .
|
||||||
RESULT_VARIABLE result)
|
RESULT_VARIABLE result)
|
||||||
|
|
Loading…
Reference in New Issue