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 File.........: 7 - Contributing to crosstool-NG.txt
2 Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@free.fr>
3 License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5
6 Contributing to crosstool-NG /
7 _____________________________/
10 Sending a bug report |
11 ---------------------+
13 If you need to send a bug report, please send a mail with subject
14 prefixed with "[CT_NG]" with to following destinations:
15 TO: yann.morin.1998 (at) free.fr
16 CC: crossgcc (at) sourceware.org
22 If you want to enhance crosstool-NG, there's a to-do list in the TODO file.
24 When updating a package, please include the category and component in the
25 start of the description. For example:
26 cc/gcc: update to the Linaro 2011.09 release
28 Here is the (mostly-complete) list of categories and components:
30 Categories | Components
31 ------------+-------------------------------------------------------
32 arch | alpha, arm, mips, powerpc...
34 binutils | binutils, elf2flt, sstrip
35 libc | eglibc, uClibc, glibc, newlib, mingw, none
36 kernel | linux, mingw32, bare-metal
37 debug | dmalloc, duma, gdb, ltrace, strace
38 complibs | gmp, mpfr, ppl, cloog, mpc, libelf
39 comptools | make, m4, autoconf, automake, libtool
40 ------------+-------------------------------------------------------
41 | The following categories have no component-part:
42 samples | when adding/updating/removing a sample
43 kconfig | for stuff in the kconfig/ dir
44 docs | for changes to the documentation
45 configure | for changes to ./configure and/or Makefile.in
46 config | for stuff in config/ not covered above
47 scripts | for stuff in scripts/ not covered above
50 Patches should come with the appropriate SoB line. A SoB line is typically
52 Signed-off-by: John DOE <john.doe@somewhere.net>
54 The SoB line is clearly described in Documentation/SubmittingPatches , section
55 12, of your favourite Linux kernel source tree.
57 Add the following to your ~/.hgrc to make Mercurial check for the SoB
60 pretxncommit.signoff = hg log --template '{desc}\n' -r $HG_NODE \
61 | grep -qi '^signed-off-by:'
63 You can also add any of the following lines if applicable:
68 For larger or more frequent contributions, mercurial should be used.
69 There is a nice, complete and step-by-step tutorial in section 'C'.