repo.or.cz
/
trojita.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
clazy: fix-fromLatin1_fromUtf8-allocations plus manual fixes
[trojita.git]
/
cmake
/
SanitizedDesktopFile.cmake
blob
b9302d2d45defb9bbfb658ab9aa63209c17701f1
1
macro(copy_desktop_file_without_cruft SOURCE TARGET)
2
file(READ "${SOURCE}" orig_content)
3
string(REGEX REPLACE "([a-zA-Z]+\\[x-test\\]=[^\n]+\n)" "" sanitized_content "${orig_content}")
4
file(WRITE "${TARGET}" "${sanitized_content}")
5
endmacro()