diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-06-01 16:55:33 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-06-01 16:55:33 (GMT) |
commit | 51554bf237037946b12f7aea97708f1a64c091a6 (patch) | |
tree | c718c86470d8003b516cdb8e92d15b7cb208e00c /scripts/build | |
parent | e5f94e60379fe134ae6f8eae6b84f20cde54bb85 (diff) |
Introduce the notion of tols facilities (none so far, sstrip coming right away...).
Diffstat (limited to 'scripts/build')
-rw-r--r-- | scripts/build/tools.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/scripts/build/tools.sh b/scripts/build/tools.sh new file mode 100644 index 0000000..ebc8131 --- /dev/null +++ b/scripts/build/tools.sh @@ -0,0 +1,34 @@ +# Wrapper to build the tools facilities + +# List all tools facilities, and parse their scripts +CT_TOOLS_FACILITY_LIST= +for f in "${CT_TOP_DIR}/scripts/build/tools/"*.sh; do + is_enabled= + . "${f}" + f=`basename "${f}" .sh` + if [ "${is_enabled}" = "y" ]; then + CT_TOOLS_FACILITY_LIST="${CT_TOOLS_FACILITY_LIST} ${f}" + fi +done + +# Download the tools facilities +do_tools_get() { + for f in ${CT_TOOLS_FACILITY_LIST}; do + do_tools_${f}_get + done +} + +# Extract and patch the tools facilities +do_tools_extract() { + for f in ${CT_TOOLS_FACILITY_LIST}; do + do_tools_${f}_extract + done +} + +# Build the tools facilities +do_tools() { + for f in ${CT_TOOLS_FACILITY_LIST}; do + do_tools_${f}_build + done +} + |