scripts/build/tools.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jul 02 19:40:54 2007 +0000 (2007-07-02)
changeset 197 9383bf4a2e2e
parent 148 567f1673d59d
child 479 05c62432ec19
permissions -rw-r--r--
Get rid of eclipse fiels once and for all.
Homogenise the references to crosstool-NG:
- the project is named "crosstool-NG"
- the front-end is named "ct-ng"
- don't use shortcuts (such as "ct-ng" to stand for "crosstool-NG")
Default action is to print help.
Don't speak of make rules when dumping help, just speak of actions.
     1 # Wrapper to build the tools facilities
     2 
     3 # List all tools facilities, and parse their scripts
     4 CT_TOOLS_FACILITY_LIST=
     5 for f in "${CT_LIB_DIR}/scripts/build/tools/"*.sh; do
     6     is_enabled=
     7     . "${f}"
     8     f=`basename "${f}" .sh`
     9     if [ "${is_enabled}" = "y" ]; then
    10         CT_TOOLS_FACILITY_LIST="${CT_TOOLS_FACILITY_LIST} ${f}"
    11     fi
    12 done
    13 
    14 # Download the tools facilities
    15 do_tools_get() {
    16     for f in ${CT_TOOLS_FACILITY_LIST}; do
    17         do_tools_${f}_get
    18     done
    19 }
    20 
    21 # Extract and patch the tools facilities
    22 do_tools_extract() {
    23     for f in ${CT_TOOLS_FACILITY_LIST}; do
    24         do_tools_${f}_extract
    25     done
    26 }
    27 
    28 # Build the tools facilities
    29 do_tools() {
    30     for f in ${CT_TOOLS_FACILITY_LIST}; do
    31         do_tools_${f}_build
    32     done
    33 }
    34