Fix upload to work with git branch name master.
This commit is contained in:
parent
0922d4f3f2
commit
2e16fee3c8
|
@ -1,7 +1,10 @@
|
||||||
set(PROJECT_PREFIX cmake-)
|
set(PROJECT_PREFIX cmake-)
|
||||||
if(NOT VERSION)
|
if(NOT VERSION)
|
||||||
set(VERSION 2.8)
|
set(VERSION 2.8)
|
||||||
endif(NOT VERSION)
|
endif()
|
||||||
|
if("${VERSION}" MATCHES "master")
|
||||||
|
set(VERSION CVS)
|
||||||
|
endif()
|
||||||
file(GLOB FILES ${CMAKE_CURRENT_SOURCE_DIR} "${PROJECT_PREFIX}*")
|
file(GLOB FILES ${CMAKE_CURRENT_SOURCE_DIR} "${PROJECT_PREFIX}*")
|
||||||
message("${FILES}")
|
message("${FILES}")
|
||||||
set(UPLOAD_LOC
|
set(UPLOAD_LOC
|
||||||
|
@ -21,4 +24,4 @@ foreach(file ${FILES})
|
||||||
endforeach(file)
|
endforeach(file)
|
||||||
if(${count} EQUAL 0)
|
if(${count} EQUAL 0)
|
||||||
message(FATAL_ERROR "Error no files uploaded.")
|
message(FATAL_ERROR "Error no files uploaded.")
|
||||||
endif(${count} EQUAL 0)
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue