Autotools: fixed parsing var assignment without space before =

Parser worked correctly with 'bin_PROGRAMS =', but failed on
'bin_PROGRAMS='. To reproduce problem on Ubuntu, perform 'apt-get source
gentoo' and open Makefile.am in downloaded folder as project: it will be
empty before this change.

Change-Id: I71d0866a2b9d8228ad5ac9237fa34be14b9e9b38
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Sergey Shambir
2013-02-03 20:47:45 +04:00
committed by hjk
parent c7ca78afd0
commit 68aeaa5fc4
2 changed files with 38 additions and 18 deletions

View File

@@ -205,6 +205,12 @@ private:
*/
static void appendHeader(QStringList &list, const QDir &dir, const QString &fileName);
/**
* If line starts with identifier and = goes next, return identifier.
* Identifier is valid target name and it matches regexp [a-zA-Z1-9_]+
*/
static QString parseIdentifierBeforeAssign(const QString &line);
private:
bool m_success; ///< Return value for MakefileParser::parse().