ec4c2d75fa
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
17 lines
618 B
Diff
17 lines
618 B
Diff
--- a/tsc/CMakeLists.txt 2020-05-17 12:21:43.000000000 +0200
|
|
+++ b/tsc/CMakeLists.txt 2020-09-25 15:46:16.492926109 +0200
|
|
@@ -297,9 +297,11 @@
|
|
install(DIRECTORY "${TSC_SOURCE_DIR}/data/worlds/"
|
|
DESTINATION ${CMAKE_INSTALL_DATADIR}/tsc/worlds
|
|
COMPONENT worlds)
|
|
-install(DIRECTORY "${TSC_BINARY_DIR}/scriptdocs"
|
|
- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/tsc
|
|
- COMPONENT base)
|
|
+if (ENABLE_SCRIPT_DOCS)
|
|
+ install(DIRECTORY "${TSC_BINARY_DIR}/scriptdocs"
|
|
+ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/tsc
|
|
+ COMPONENT base)
|
|
+endif()
|
|
|
|
if(NOT WIN32)
|
|
install(FILES "${TSC_SOURCE_DIR}/docs/man/tsc.6"
|