multiprocessing.eclass: Fix handling multiple short options (e.g. -kj)
authorMichał Górny <mgorny@gentoo.org>
Tue, 13 Dec 2016 08:57:46 +0000 (09:57 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 18 Dec 2016 13:45:43 +0000 (14:45 +0100)
commit639d76a02d2965f426944f7fa6d0259a99a613f9
tree965dd1e87e9e1c4a5682236de0045a1b47ec743e
parentca375fd411897ae66f0691c9f8b257ed364e6e05
multiprocessing.eclass: Fix handling multiple short options (e.g. -kj)

Improve the regular expressions to handle parameters consisting of
multiple short options (such as -kj). It should be noted that the code
is not perfect but should handle all common (valid) cases; it could e.g.
incorrectly process a short option followed by string arg such as
'-Wfoo.j' although having this in MAKEOPTS is extremely unlikely.
eclass/multiprocessing.eclass
eclass/tests/multiprocessing_makeopts_jobs.sh
eclass/tests/multiprocessing_makeopts_loadavg.sh