```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
```
25 lines
688 B
Diff
25 lines
688 B
Diff
--- a/lib/ext2.c
|
|
+++ b/lib/ext2.c
|
|
@@ -139,8 +139,10 @@
|
|
if(! (flags & ~EXT2_NOCOMPR_FL) )
|
|
x_addprop(f, "NoCompBlock");
|
|
#endif
|
|
+#ifdef EXT2_ECOMPR_FL
|
|
if(! (flags & ~EXT2_ECOMPR_FL) )
|
|
x_addprop(f, "CompError");
|
|
+#endif
|
|
if(! (flags & ~EXT2_BTREE_FL) )
|
|
x_addprop(f, "BTree");
|
|
if(! (flags & ~EXT2_INDEX_FL) )
|
|
@@ -225,8 +227,10 @@
|
|
if( e2prop_get(f, "NoCompBlock", (char **)&tmp) == 0 )
|
|
flags |= EXT2_NOCOMPR_FL ;
|
|
#endif
|
|
+#ifdef EXT2_ECOMPR_FL
|
|
if( e2prop_get(f, "CompError", (char **)&tmp) == 0 )
|
|
flags |= EXT2_ECOMPR_FL ;
|
|
+#endif
|
|
if( e2prop_get(f, "BTree", (char **)&tmp) == 0 )
|
|
flags |= EXT2_BTREE_FL ;
|
|
if( e2prop_get(f, "HashIndexed", (char **)&tmp) == 0 )
|