```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 ```
15 lines
496 B
Diff
15 lines
496 B
Diff
--- a/inc/private.h 2006-04-26 22:17:01.000000000 +0300
|
|
+++ b/inc/private.h 2007-08-19 12:23:02.000000000 +0300
|
|
@@ -10,10 +10,10 @@
|
|
#define PRIVATE_H
|
|
|
|
typedef short word; /* 16 bit signed int */
|
|
-typedef long longword; /* 32 bit signed int */
|
|
+typedef int longword; /* 32 bit signed int */
|
|
|
|
typedef unsigned short uword; /* unsigned word */
|
|
-typedef unsigned long ulongword; /* unsigned longword */
|
|
+typedef unsigned int ulongword; /* unsigned longword */
|
|
|
|
struct gsm_state {
|
|
|