861ac185a6
```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 ```
29 lines
838 B
Diff
29 lines
838 B
Diff
--- a/cmake/FindUtfcpp.cmake.old 2016-01-13 19:14:05.737426666 +0100
|
|
+++ b/cmake/FindUtfcpp.cmake 2016-01-13 19:13:28.952877141 +0100
|
|
@@ -1,23 +1,8 @@
|
|
-# - Try to find utfcpp
|
|
-# Once done, this will define
|
|
-#
|
|
-# UTFCPP_FOUND - system has utfcpp's utf8.h
|
|
-# UTFCPP_PATH - the utfcpp include directories
|
|
-
|
|
include(CheckCXXSourceCompiles)
|
|
|
|
-set(UTFCPP_FOUND FALSE)
|
|
-
|
|
-find_path(UTFCPP_INCLUDE_DIR
|
|
- NAMES utf8.h
|
|
- HINTS "${UTFCPP_PATH}"
|
|
- PATHS "${PROJECT_SOURCE_DIR}/lib/utfcpp/v2_0/source"
|
|
-)
|
|
-
|
|
-if (UTFCPP_INCLUDE_DIR)
|
|
- set(CMAKE_REQUIRED_INCLUDES "${UTFCPP_INCLUDE_DIR}")
|
|
- set(UTFCPP_FOUND TRUE)
|
|
-endif()
|
|
+set(UTFCPP_FOUND TRUE)
|
|
+set(UTFCPP_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lib/utfcpp/v2_0/source")
|
|
+set(CMAKE_REQUIRED_INCLUDES "${UTFCPP_INCLUDE_DIR}")
|
|
|
|
check_cxx_source_compiles("
|
|
#include <string>
|