[education/rkward] rkward/rbackend/rpackages: tar with --numeric-owner does not work on Windows, either
Thomas Friedrichsmeier
null at kde.org
Fri Feb 18 14:14:05 GMT 2022
Git commit 487bb5b6eff1d65cd738c7d67f080c0dddc0e340 by Thomas Friedrichsmeier.
Committed on 18/02/2022 at 14:13.
Pushed by tfry into branch 'master'.
tar with --numeric-owner does not work on Windows, either
M +3 -3 rkward/rbackend/rpackages/CMakeLists.txt
https://invent.kde.org/education/rkward/commit/487bb5b6eff1d65cd738c7d67f080c0dddc0e340
diff --git a/rkward/rbackend/rpackages/CMakeLists.txt b/rkward/rbackend/rpackages/CMakeLists.txt
index cca44e8a..87c17dc0 100644
--- a/rkward/rbackend/rpackages/CMakeLists.txt
+++ b/rkward/rbackend/rpackages/CMakeLists.txt
@@ -1,16 +1,16 @@
MACRO(createRpackage name)
FILE(GLOB_RECURSE rkwardfiles${name} LIST_DIRECTORIES true CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/${name}/*")
- IF(APPLE)
+ IF(APPLE OR WIN32)
ADD_CUSTOM_COMMAND(OUTPUT ${name}.tgz
COMMAND ${CMAKE_COMMAND} -E tar "cfz" "${CMAKE_CURRENT_BINARY_DIR}/${name}.tgz" "${name}"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${rkwardfiles${name}})
- ELSE(APPLE)
+ ELSE(APPLE OR WIN32)
ADD_CUSTOM_COMMAND(OUTPUT ${name}.tgz
COMMAND tar "cfz" "${CMAKE_CURRENT_BINARY_DIR}/${name}.tgz" "--owner=0" "--group=0" "--numeric-owner" "${name}"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${rkwardfiles${name}})
- ENDIF(APPLE)
+ ENDIF(APPLE OR WIN32)
ENDMACRO()
createRpackage(rkward)
More information about the rkward-tracker
mailing list