scripts/showSamples.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 10 22:10:40 2008 +0000 (2008-06-10)
changeset 552 4edbcdb17e3d
parent 474 2904d77fe117
child 560 0ca969b84057
permissions -rwxr-xr-x
Vampirise patches for gcc-4.3.{0,1} from gentoo. Absolutely untested...

/trunk/patches/gcc/4.3.0/275-gcc-x86-emit-cld.patch | 156 156 0 0 +
/trunk/patches/gcc/4.3.0/450-gcc4-noteGNUstack.patch | 198 198 0 0 +
/trunk/patches/gcc/4.3.0/550-gcc43-pr25343.patch | 21 21 0 0 +
/trunk/patches/gcc/4.3.0/375-gcc43-pr35440.patch | 59 59 0 0 +
/trunk/patches/gcc/4.3.0/125-gcc-trampolinewarn.patch | 35 35 0 0 +
/trunk/patches/gcc/4.3.0/475-gcc43-pr35705.patch | 21 21 0 0 +
/trunk/patches/gcc/4.3.0/700-204-uclibc-locale-wchar_fix.patch | 51 51 0 0 +
/trunk/patches/gcc/4.3.0/775-303-c99-complex-ugly-hack.patch | 14 14 0 0 +
/trunk/patches/gcc/4.3.0/575-sh-pr24836.patch | 28 28 0 0 +
/trunk/patches/gcc/4.3.0/675-203-uclibc-locale-no__x.patch | 224 224 0 0 +
/trunk/patches/gcc/4.3.0/400-gcc43-pr24170.patch | 61 61 0 0 +
/trunk/patches/gcc/4.3.0/100-gcc-4.1-alpha-mieee-default.patch | 34 34 0 0 +
/trunk/patches/gcc/4.3.0/825-305-libmudflap-susv3-legacy.patch | 49 49 0 0 +
/trunk/patches/gcc/4.3.0/175-gcc-4.1-cross-compile.patch | 44 44 0 0 +
/trunk/patches/gcc/4.3.0/850-306-libstdc++-namespace.patch | 38 38 0 0 +
/trunk/patches/gcc/4.3.0/200-gcc-netbsd-symbolic.patch | 14 14 0 0 +
/trunk/patches/gcc/4.3.0/750-301-missing-execinfo_h.patch | 13 13 0 0 +
/trunk/patches/gcc/4.3.0/225-gcc-sparc64-bsd.patch | 30 30 0 0 +
/trunk/patches/gcc/4.3.0/350-300-libstdc++-pic.patch | 56 56 0 0 +
/trunk/patches/gcc/4.3.0/500-gcc43-pr34571.patch | 35 35 0 0 +
/trunk/patches/gcc/4.3.0/300-gcc-3.4-libiberty-pic.patch | 12 12 0 0 +
/trunk/patches/gcc/4.3.0/625-103-uclibc-conf-noupstream.patch | 13 13 0 0 +
/trunk/patches/gcc/4.3.0/425-gcc4-ia64-noteGNUstack.patch | 96 96 0 0 +
/trunk/patches/gcc/4.3.0/325-gcc4-superh-default-multilib.patch | 25 25 0 0 +
/trunk/patches/gcc/4.3.0/725-205-uclibc-locale-update.patch | 355 355 0 0 ++
/trunk/patches/gcc/4.3.0/800-304-index_macro.patch | 27 27 0 0 +
/trunk/patches/gcc/4.3.0/600-gcc-ca-translation-typo.patch | 19 19 0 0 +
/trunk/patches/gcc/4.3.0/650-200-uclibc-locale.patch | 2794 2794 0 0 +++++++++++++++
/trunk/patches/gcc/4.3.0/525-gcc43-pr35982.patch | 23 23 0 0 +
/trunk/patches/gcc/4.3.0/150-gcc43-java-nomulti.patch | 47 47 0 0 +
/trunk/patches/gcc/4.3.0/250-904-flatten-switch-stmt-00.patch | 76 76 0 0 +
/trunk/patches/gcc/4.3.1/100-gcc-4.1-alpha-mieee-default.patch | 34 34 0 0 +
/trunk/patches/gcc/4.3.1/500-103-uclibc-conf-noupstream.patch | 13 13 0 0 +
/trunk/patches/gcc/4.3.1/175-gcc-4.1-cross-compile.patch | 44 44 0 0 +
/trunk/patches/gcc/4.3.1/400-gcc4-noteGNUstack.patch | 198 198 0 0 +
/trunk/patches/gcc/4.3.1/600-205-uclibc-locale-update.patch | 355 355 0 0 ++
/trunk/patches/gcc/4.3.1/725-306-libstdc++-namespace.patch | 38 38 0 0 +
/trunk/patches/gcc/4.3.1/350-gcc43-pr24170.patch | 61 61 0 0 +
/trunk/patches/gcc/4.3.1/300-gcc4-superh-default-multilib.patch | 25 25 0 0 +
/trunk/patches/gcc/4.3.1/575-204-uclibc-locale-wchar_fix.patch | 51 51 0 0 +
/trunk/patches/gcc/4.3.1/200-gcc-netbsd-symbolic.patch | 14 14 0 0 +
/trunk/patches/gcc/4.3.1/225-gcc-sparc64-bsd.patch | 30 30 0 0 +
/trunk/patches/gcc/4.3.1/450-gcc43-pr25343.patch | 21 21 0 0 +
/trunk/patches/gcc/4.3.1/625-301-missing-execinfo_h.patch | 13 13 0 0 +
/trunk/patches/gcc/4.3.1/325-300-libstdc++-pic.patch | 56 56 0 0 +
/trunk/patches/gcc/4.3.1/425-gcc43-pr34571.patch | 35 35 0 0 +
/trunk/patches/gcc/4.3.1/375-gcc4-ia64-noteGNUstack.patch | 96 96 0 0 +
/trunk/patches/gcc/4.3.1/125-gcc-trampolinewarn.patch | 35 35 0 0 +
/trunk/patches/gcc/4.3.1/275-gcc-3.4-libiberty-pic.patch | 12 12 0 0 +
/trunk/patches/gcc/4.3.1/650-303-c99-complex-ugly-hack.patch | 14 14 0 0 +
/trunk/patches/gcc/4.3.1/525-200-uclibc-locale.patch | 2794 2794 0 0 +++++++++++++++
/trunk/patches/gcc/4.3.1/550-203-uclibc-locale-no__x.patch | 224 224 0 0 +
/trunk/patches/gcc/4.3.1/150-gcc43-java-nomulti.patch | 47 47 0 0 +
/trunk/patches/gcc/4.3.1/700-305-libmudflap-susv3-legacy.patch | 49 49 0 0 +
/trunk/patches/gcc/4.3.1/675-304-index_macro.patch | 27 27 0 0 +
/trunk/patches/gcc/4.3.1/250-904-flatten-switch-stmt-00.patch | 76 76 0 0 +
/trunk/patches/gcc/4.3.1/475-sh-pr24836.patch | 28 28 0 0 +
57 files changed, 9058 insertions(+)
yann@74
     1
#!/bin/bash
yann@74
     2
yann@74
     3
# Parses all samples on the command line, and for each of them, prints
yann@74
     4
# the versions of the main tools
yann@74
     5
yann@474
     6
opt="$1"
yann@474
     7
[ "${opt}" = "-v" ] && shift || opt=
yann@474
     8
yann@74
     9
# GREP_OPTIONS screws things up.
yann@74
    10
export GREP_OPTIONS=
yann@74
    11
yann@74
    12
# Dump a single sample
yann@74
    13
dump_single_sample() {
yann@474
    14
    local verbose=0
yann@474
    15
    [ "$1" = "-v" ] && verbose=1 && shift
yann@74
    16
    local width="$1"
yann@74
    17
    local sample="$2"
yann@182
    18
    if [ -f "${CT_TOP_DIR}/samples/${sample}/crosstool.config" ]; then
yann@182
    19
        sample_top="${CT_TOP_DIR}"
yann@182
    20
        sample_type="local"
yann@182
    21
    else
yann@182
    22
        sample_top="${CT_LIB_DIR}"
yann@182
    23
        sample_type="global"
yann@182
    24
    fi
yann@182
    25
    printf "  %-*s  (%s" ${width} "${sample}" "${sample_type}"
yann@182
    26
    [ -f "${sample_top}/samples/${sample}/broken" ] && printf ",broken"
yann@182
    27
    echo ")"
yann@474
    28
    if [ ${verbose} -ne 0 ]; then
yann@474
    29
        . "${sample_top}/samples/${sample}/crosstool.config"
yann@474
    30
        echo    "    OS        : ${CT_KERNEL}-${CT_KERNEL_VERSION}"
yann@474
    31
        echo    "    binutils  : binutils-${CT_BINUTILS_VERSION}"
yann@474
    32
        echo -n "    C compiler: ${CT_CC}-${CT_CC_VERSION} (C"
yann@474
    33
        [ "${CT_CC_LANG_CXX}" = "y"     ] && echo -n ",C++"
yann@474
    34
        [ "${CT_CC_LANG_FORTRAN}" = "y" ] && echo -n ",Fortran"
yann@474
    35
        [ "${CT_CC_LANG_JAVA}" = "y"    ] && echo -n ",Java"
yann@474
    36
        [ "${CT_CC_LANG_ADA}" = "y"     ] && echo -n ",ADA"
yann@474
    37
        [ "${CT_CC_LANG_OBJC}" = "y"    ] && echo -n ",Objective-C"
yann@474
    38
        [ "${CT_CC_LANG_OBJCXX}" = "y"  ] && echo -n ",Objective-C++"
yann@474
    39
        [ -n "${CT_CC_LANG_OTHERS}"     ] && echo -n ",$CT_CC_LANG_OTHERS}"
yann@474
    40
        echo    ")"
yann@474
    41
        echo    "    C library : ${CT_LIBC}-${CT_LIBC_VERSION}"
yann@474
    42
        echo -n "    Tools     :"
yann@474
    43
        [ "${CT_LIBELF}"  ] && echo -n " libelf-${CT_LIBELF_VERSION}"
yann@474
    44
        [ "${CT_SSTRIP}"  ] && echo -n " sstrip"
yann@474
    45
        [ "${CT_DMALLOC}" ] && echo -n " dmalloc-${CT_DMALLOC_VERSION}"
yann@474
    46
        [ "${CT_DUMA}"    ] && echo -n " duma-${CT_DUMA_VERSION}"
yann@474
    47
        [ "${CT_GDB}"     ] && echo -n " gdb-${CT_GDB_VERSION}"
yann@474
    48
        [ "${CT_LTRACE}"  ] && echo -n " ltrace-${CT_LTRACE_VERSION}"
yann@474
    49
        [ "${CT_STRACE}"  ] && echo -n " strace-${CT_STRACE_VERSION}"
yann@474
    50
        echo
yann@474
    51
    fi
yann@74
    52
}
yann@74
    53
yann@74
    54
# Get largest sample width
yann@74
    55
width=0
yann@74
    56
for sample in "${@}"; do
yann@74
    57
    [ ${#sample} -gt ${width} ] && width=${#sample}
yann@74
    58
done
yann@74
    59
yann@74
    60
for sample in "${@}"; do
yann@474
    61
    ( dump_single_sample ${opt} ${width} "${sample}" )
yann@74
    62
done