Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/cmake/modules/KDevPlatformMacros.cmake
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | 60 | COMMAND tar ARGS -c -C ${CMAKE_CURRENT_SOURCE_DIR}/${_templateName} | |||
---|---|---|---|---|---|
61 | --exclude .kdev_ignore --exclude .svn --numeric-owner | 61 | --exclude .kdev_ignore --exclude .svn --numeric-owner | ||
62 | -j -f ${_template} . | 62 | -j -f ${_template} . | ||
63 | DEPENDS ${_deps} | 63 | DEPENDS ${_deps} | ||
64 | ) | 64 | ) | ||
65 | else() | 65 | else() | ||
66 | set(extraArgs "") | 66 | set(extraArgs "") | ||
67 | if(DEFINED ENV{SOURCE_DATE_EPOCH}) | 67 | if(DEFINED ENV{SOURCE_DATE_EPOCH}) | ||
68 | # We assume there is tar > 1.28 if a reproducible build is wanted. | 68 | # We assume there is tar > 1.28 if a reproducible build is wanted. | ||
69 | set(extraArgs --mtime=$ENV{SOURCE_DATE_EPOCH} --sort=name) | 69 | set(extraArgs --mtime="@$ENV{SOURCE_DATE_EPOCH}" --sort=name) | ||
70 | endif() | 70 | endif() | ||
71 | add_custom_command(OUTPUT ${_template} | 71 | add_custom_command(OUTPUT ${_template} | ||
72 | COMMAND tar ARGS -c -C ${CMAKE_CURRENT_SOURCE_DIR}/${_templateName} | 72 | COMMAND tar ARGS -c -C ${CMAKE_CURRENT_SOURCE_DIR}/${_templateName} | ||
73 | --exclude .kdev_ignore --exclude .svn --mode=go=rX,u+rw,a-s --owner=root | 73 | --exclude .kdev_ignore --exclude .svn --mode=go=rX,u+rw,a-s | ||
74 | --group=root --numeric-owner -j -f ${_template} ${extraArgs} . | 74 | --owner=0 --group=0 --numeric-owner -j -f ${_template} ${extraArgs} . | ||
75 | DEPENDS ${_deps} | 75 | DEPENDS ${_deps} | ||
76 | ) | 76 | ) | ||
77 | endif() | 77 | endif() | ||
78 | 78 | | |||
79 | endif() | 79 | endif() | ||
80 | 80 | | |||
81 | 81 | | |||
82 | endmacro(kdevplatform_create_template_archive _templateName) | 82 | endmacro(kdevplatform_create_template_archive _templateName) | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |