engine.pl: Fix a recent breakage of the buildsystem generator
commit74cf9bdda693e4c7b9443dea6a30d52f55f16517
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Fri, 22 Jan 2010 20:00:47 +0000 (22 20:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Jan 2010 23:55:49 +0000 (22 15:55 -0800)
tree3a11db1dd09fa32af9d6dbd88dfa55b01bd4d6a5
parentaf82559b435aa2a18f38a4f47a93729c8dc543d3
engine.pl: Fix a recent breakage of the buildsystem generator

Commit ade2ca0c (Do not try to remove directories when removing
old links, 2009-10-27) added an expression to a 'test' using an
'-o' or connective. This resulted in the buildsystem generator
mistaking a conditional 'rm' for a linker command. In order to
fix the breakage, we filter out all 'test' commands before then
attempting to identify the commands of interest.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Acked-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/buildsystems/engine.pl