c987560802
```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 ```
21 lines
867 B
Diff
21 lines
867 B
Diff
*** a/src/test/contribs-lib/analysis/de/TestGermanStemFilter.cpp.orig 2020-08-27 19:02:04.024654943 -0300
|
|
--- a/src/test/contribs-lib/analysis/de/TestGermanStemFilter.cpp 2020-08-27 19:02:26.219672761 -0300
|
|
***************
|
|
*** 8,15 ****
|
|
#include "test.h"
|
|
#include "CLucene/util/CLStreams.h"
|
|
#include "CLucene/analysis/Analyzers.h"
|
|
! #include "CLucene/analysis/de/GermanStemmer.h"
|
|
! #include "CLucene/analysis/de/GermanStemFilter.h"
|
|
#include "CLucene/analysis/standard/StandardTokenizer.h"
|
|
|
|
CL_NS_USE(util)
|
|
--- 8,15 ----
|
|
#include "test.h"
|
|
#include "CLucene/util/CLStreams.h"
|
|
#include "CLucene/analysis/Analyzers.h"
|
|
! #include "CLucene/../../contribs-lib/CLucene/analysis/de/GermanStemmer.h"
|
|
! #include "CLucene/../../contribs-lib/CLucene/analysis/de/GermanStemFilter.h"
|
|
#include "CLucene/analysis/standard/StandardTokenizer.h"
|
|
|
|
CL_NS_USE(util)
|