diff options
author | Craig Small <csmall@users.sourceforge.net> | 2012-06-11 11:36:55 +1000 |
---|---|---|
committer | Craig Small <csmall@users.sourceforge.net> | 2012-06-11 11:36:55 +1000 |
commit | f0c122324ddaad51ed2ad3396422e6721b6658ff (patch) | |
tree | accfc7197f96caeff6f03dafdf60b892e483b395 /src | |
parent | 92f84199ed8b22b95683a368246d0e7f076dafdd (diff) |
sed uses proper BRE
Apparently even though [0-9]+ works most of the time, its not proper BRE
and doesn't work ALL of the time. Replacing this with [0-9][0-9]* makes
everyone happy.
Noticed by Rich from the busybox project and reported by John Spencer
of the same project.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 5768294..fdf886b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -57,7 +57,7 @@ signames.h: signames.c Makefile export LC_ALL=C ; \ @CPP@ -dM $< |\ tr -s '\t ' ' ' | sort -n -k 3 | sed \ - 's:#define SIG\([A-Z]\+[0-9]*\) \([0-9]\+\) *\(\|/\*.*\)$$:{\ \2,"\1" },:p;d' | \ + 's:#define SIG\([A-Z][A-Z]*[0-9]*\) \([0-9][0-9]*\) *\(\|/\*.*\)$$:{\ \2,"\1" },:p;d' | \ grep -v '[0-9][0-9][0-9]' >signames.h || \ { rm -f signames.h; exit 1; } grep '^{ 1,"HUP" },$$' signames.h >/dev/null || \ |