```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 ```
20 lines
579 B
Diff
20 lines
579 B
Diff
# HG changeset patch
|
|
# User Adam Lackorzynski <adam@os.inf.tu-dresden.de>
|
|
# Date 1440364600 -7200
|
|
# Node ID 4eff7b4cde33a56d9caf64e44722186c89e26922
|
|
# Parent 3cb4335d5819099c85a30dae714f0a213fa4a44c
|
|
Add ARRAY_SIZE macro
|
|
|
|
diff -r 3cb4335d5819 -r 4eff7b4cde33 src/minicom.h
|
|
--- a/src/minicom.h Mon Jun 29 21:16:14 2015 +0200
|
|
+++ b/src/minicom.h Sun Aug 23 23:16:40 2015 +0200
|
|
@@ -302,6 +302,7 @@
|
|
int lockfile_create(int no_msgs);
|
|
void lockfile_remove(void);
|
|
|
|
+#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
|
|
|
|
|
/* We want the ANSI offsetof macro to do some dirty stuff. */
|
|
|