scripts/addToolVersion: cleanups
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jan 10 17:22:47 2010 +0100 (2010-01-10)
changeset 1722cde6a2002479
parent 1721 4ff4eeb061e5
child 1723 a4298e0844ec
scripts/addToolVersion: cleanups
scripts/addToolVersion.sh
     1.1 --- a/scripts/addToolVersion.sh	Sun Jan 10 16:50:52 2010 +0100
     1.2 +++ b/scripts/addToolVersion.sh	Sun Jan 10 17:22:47 2010 +0100
     1.3 @@ -14,37 +14,36 @@
     1.4  
     1.5  doHelp() {
     1.6      cat <<-EOF
     1.7 -Usage: ${myname} <tool> <[options] version [...]> ...
     1.8 -  'tool' in one of:
     1.9 -    --gcc, --binutils, --glibc, --eglibc, --uClibc, --linux,
    1.10 -    --gdb, --dmalloc, --duma, --strace, --ltrace, --libelf
    1.11 -    --gmp, --mpfr, --ppl, --cloog, --mpc
    1.12 -
    1.13 -  Valid options for all tools:
    1.14 -    --stable, -s, +x   (default)
    1.15 -      mark the version as being stable (as opposed to experimental, below)
    1.16 -
    1.17 -    --experimental, -x, +s
    1.18 -      mark the version as being experimental (as opposed to stable, above)
    1.19 -
    1.20 -    --current, -c, +o   (default)
    1.21 -      mark the version as being cuurent (as opposed to obsolete, below)
    1.22 -
    1.23 -    --obsolete, -o, +c
    1.24 -      mark the version as being obsolete (as opposed to current, above)
    1.25 -
    1.26 -  Note: setting a new tool resets to the defaults: 'stable' and 'current'.
    1.27 -
    1.28 -  'version' is a valid version for the specified tool.
    1.29 -
    1.30 -  Examples:
    1.31 -    add stable current version 2.6.19.2 to linux kernel:
    1.32 -      ${myname} --linux 2.6.19.2
    1.33 -
    1.34 -    add experimental obsolete version 2.3.5 and stable current versions 2.6.1
    1.35 -    and 2.6.2 to glibc, add stable obsolete version 3.3.3 to gcc:
    1.36 -      ${myname} --glibc -x -o 2.3.5 -s -c 2.6.1 2.6.2 --gcc -o 3.3.3
    1.37 -EOF
    1.38 +		Usage: ${myname} <--tool> <[options] version [...]> ...
    1.39 +		  'tool' in one of:
    1.40 +		    gcc, binutils, glibc, eglibc, uClibc, linux, gdb, dmalloc, duma,
    1.41 +		    strace, ltrace, libelf, gmp, mpfr, ppl, cloog, mpc
    1.42 +		
    1.43 +		  Valid options for all tools:
    1.44 +		    --stable, -s, +x   (default)
    1.45 +		      mark the version as being stable (as opposed to experimental, below)
    1.46 +		
    1.47 +		    --experimental, -x, +s
    1.48 +		      mark the version as being experimental (as opposed to stable, above)
    1.49 +		
    1.50 +		    --current, -c, +o   (default)
    1.51 +		      mark the version as being cuurent (as opposed to obsolete, below)
    1.52 +		
    1.53 +		    --obsolete, -o, +c
    1.54 +		      mark the version as being obsolete (as opposed to current, above)
    1.55 +		
    1.56 +		  Note: setting a new tool resets to the defaults: 'stable' and 'current'.
    1.57 +		
    1.58 +		  'version' is a valid version for the specified tool.
    1.59 +		
    1.60 +		  Examples:
    1.61 +		    add stable current version 2.6.19.2 to linux kernel:
    1.62 +		      ${myname} --linux 2.6.19.2
    1.63 +		
    1.64 +		    add experimental obsolete version 2.3.5 and stable current versions 2.6.1
    1.65 +		    and 2.6.2 to glibc, add stable obsolete version 3.3.3 to gcc:
    1.66 +		      ${myname} --glibc -x -o 2.3.5 -s -c 2.6.1 2.6.2 --gcc -o 3.3.3
    1.67 +		EOF
    1.68  }
    1.69  
    1.70  # Effectively add a version to the specified tool
    1.71 @@ -130,23 +129,23 @@
    1.72  while [ $# -gt 0 ]; do
    1.73      case "$1" in
    1.74          # Tools:
    1.75 -        --gcc)      EXP=; OBS=; cat=CC;        tool=gcc;      tool_prefix=cc;;
    1.76 -        --binutils) EXP=; OBS=; cat=BINUTILS;  tool=binutils; tool_prefix=binutils;;
    1.77 -        --glibc)    EXP=; OBS=; cat=LIBC_GLIBC;     tool=glibc;    tool_prefix=libc;;
    1.78 -        --eglibc)   EXP=; OBS=; cat=LIBC_EGLIBC;    tool=eglibc;   tool_prefix=libc;;
    1.79 -        --uClibc)   EXP=; OBS=; cat=LIBC_UCLIBC;    tool=uClibc;   tool_prefix=libc;;
    1.80 -        --linux)    EXP=; OBS=; cat=KERNEL;    tool=linux;    tool_prefix=kernel;;
    1.81 -        --gdb)      EXP=; OBS=; cat=GDB;       tool=gdb;      tool_prefix=debug;;
    1.82 -        --dmalloc)  EXP=; OBS=; cat=DMALLOC;   tool=dmalloc;  tool_prefix=debug;;
    1.83 -        --duma)     EXP=; OBS=; cat=DUMA;      tool=duma;     tool_prefix=debug;;
    1.84 -        --strace)   EXP=; OBS=; cat=STRACE;    tool=strace;   tool_prefix=debug;;
    1.85 -        --ltrace)   EXP=; OBS=; cat=LTRACE;    tool=ltrace;   tool_prefix=debug;;
    1.86 -        --libelf)   EXP=; OBS=; cat=LIBELF;    tool=libelf;   tool_prefix=tools;;
    1.87 -        --gmp)      EXP=; OBS=; cat=GMP;       tool=gmp;      tool_prefix=companion_libs;;
    1.88 -        --mpfr)     EXP=; OBS=; cat=MPFR;      tool=mpfr;     tool_prefix=companion_libs;;
    1.89 -        --ppl)      EXP=; OBS=; cat=PPL;       tool=ppl;      tool_prefix=companion_libs;;
    1.90 -        --cloog)    EXP=; OBS=; cat=CLOOG;     tool=cloog;    tool_prefix=companion_libs;;
    1.91 -        --mpc)      EXP=; OBS=; cat=MPC;       tool=mpc;      tool_prefix=companion_libs;;
    1.92 +        --gcc)      EXP=; OBS=; cat=CC;             tool=gcc;       tool_prefix=cc;;
    1.93 +        --binutils) EXP=; OBS=; cat=BINUTILS;       tool=binutils;  tool_prefix=binutils;;
    1.94 +        --glibc)    EXP=; OBS=; cat=LIBC_GLIBC;     tool=glibc;     tool_prefix=libc;;
    1.95 +        --eglibc)   EXP=; OBS=; cat=LIBC_EGLIBC;    tool=eglibc;    tool_prefix=libc;;
    1.96 +        --uClibc)   EXP=; OBS=; cat=LIBC_UCLIBC;    tool=uClibc;    tool_prefix=libc;;
    1.97 +        --linux)    EXP=; OBS=; cat=KERNEL;         tool=linux;     tool_prefix=kernel;;
    1.98 +        --gdb)      EXP=; OBS=; cat=GDB;            tool=gdb;       tool_prefix=debug;;
    1.99 +        --dmalloc)  EXP=; OBS=; cat=DMALLOC;        tool=dmalloc;   tool_prefix=debug;;
   1.100 +        --duma)     EXP=; OBS=; cat=DUMA;           tool=duma;      tool_prefix=debug;;
   1.101 +        --strace)   EXP=; OBS=; cat=STRACE;         tool=strace;    tool_prefix=debug;;
   1.102 +        --ltrace)   EXP=; OBS=; cat=LTRACE;         tool=ltrace;    tool_prefix=debug;;
   1.103 +        --libelf)   EXP=; OBS=; cat=LIBELF;         tool=libelf;    tool_prefix=tools;;
   1.104 +        --gmp)      EXP=; OBS=; cat=GMP;            tool=gmp;       tool_prefix=companion_libs;;
   1.105 +        --mpfr)     EXP=; OBS=; cat=MPFR;           tool=mpfr;      tool_prefix=companion_libs;;
   1.106 +        --ppl)      EXP=; OBS=; cat=PPL;            tool=ppl;       tool_prefix=companion_libs;;
   1.107 +        --cloog)    EXP=; OBS=; cat=CLOOG;          tool=cloog;     tool_prefix=companion_libs;;
   1.108 +        --mpc)      EXP=; OBS=; cat=MPC;            tool=mpc;       tool_prefix=companion_libs;;
   1.109  
   1.110          # Tools options:
   1.111          -x|--experimental|+s)   EXP=1;;