scripts/addToolsVersion: properly handle .in vs. .in.2
While most components have their version in the .in file, some
have it in the .in.2 (eg. elf2flt).
Currently, to handle this case, we indiscriminately munge both files,
but this is wrong: in the elf2flt case, if we add a binutils version,
we do not want it to be added to elf2flt, and conversely.
So, for each tool, we need to explicitly know what file to munge.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
1 --- uClibc-0.9.30.orig/extra/scripts/unifdef.c 2008-04-28 01:10:00.000000000 +0200
2 +++ uClibc-0.9.30/extra/scripts/unifdef.c 2011-08-21 09:42:21.000000000 +0200
4 static void error(const char *);
5 static int findsym(const char *);
6 static void flushline(bool);
7 -static Linetype getline(void);
8 +static Linetype getlinetype(void);
9 static Linetype ifeval(const char **);
10 static void ignoreoff(void);
11 static void ignoreon(void);
16 - lineval = getline();
17 + lineval = getlinetype();
18 trans_table[ifstate[depth]][lineval]();
19 debug("process %s -> %s depth %d",
20 linetype_name[lineval],
22 * help from skipcomment().