diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2023-04-04 10:41:34 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2023-04-04 10:41:34 +0300 |
commit | 5e1addc04892be381248631e960cea86c4389ea7 (patch) | |
tree | 0cfad3da993b84ec06d25a380a7a8bc0ab7f5218 | |
parent | b34276c4eec0feccc288866fc03578066c24a1b9 (diff) | |
download | rpm-5e1addc04892be381248631e960cea86c4389ea7.tar.gz |
Add translations to dist tarballs (if po submodule is present)
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 39bc6eaf3..2a71946cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -401,9 +401,14 @@ function(add_tarball targetname namever treeish) --output=${CMAKE_BINARY_DIR}/${tarname} --prefix=${namever}/ ${treeish} - COMMAND git submodule foreach --recursive - "git archive --prefix=${namever}/$path/ --output=${CMAKE_BINARY_DIR}/$sha1.tar HEAD && tar --concatenate --file=${CMAKE_BINARY_DIR}/${tarname} ${CMAKE_BINARY_DIR}/$sha1.tar && rm -f ${CMAKE_BINARY_DIR}/$sha1.tar" - COMMAND bzip2 ${CMAKE_BINARY_DIR}/${tarname} + COMMAND git submodule foreach --quiet + "git archive --prefix=${namever}/$sm_path/ \ + --output=${CMAKE_BINARY_DIR}/$sha1.tar HEAD \ + && tar --concatenate \ + --file=${CMAKE_BINARY_DIR}/${tarname} \ + ${CMAKE_BINARY_DIR}/$sha1.tar \ + && rm -f ${CMAKE_BINARY_DIR}/$sha1.tar" + COMMAND bzip2 -f ${CMAKE_BINARY_DIR}/${tarname} ) add_custom_target(${targetname} DEPENDS ${tarname}) endfunction() |