🔧 Generate scripts with cmake
This commit is contained in:
11
update.cmake
Normal file
11
update.cmake
Normal file
@ -0,0 +1,11 @@
|
||||
message("TOOL \"${TOOL}\" REPO \"${REPO}\"")
|
||||
|
||||
file(DOWNLOAD "https://github-get-latest-version.anotherfoxguy.workers.dev/${REPO}" "tmp/${TOOL}-version")
|
||||
file(READ "tmp/${TOOL}-version" VERSION_DIRTY)
|
||||
|
||||
string(REGEX REPLACE /[^0-9\\.]/ "" VERSION ${VERSION_DIRTY})
|
||||
string(REPLACE "." "_" VERSION_UNDERSCORE ${VERSION})
|
||||
|
||||
message("Latest VERSION ${VERSION}")
|
||||
|
||||
configure_file("templates/install-${TOOL}.sh.in" install-${TOOL}.sh @ONLY)
|
Reference in New Issue
Block a user