Moved the ICA targets creation to func_ICA.sh

This commit is contained in:
Manuel Canales Esparcia 2006-04-08 14:02:59 +00:00
parent 158b30fb4e
commit a5fa1a9070
3 changed files with 28 additions and 18 deletions

View file

@ -399,13 +399,7 @@ EOF
) >> $MKFILE
# Add the ICA targets
[[ "$RUN_ICA" != "0" ]] && \
(
cat << EOF
ICA_rebuild: $ICA_rebuild
EOF
) >> $MKFILE
[[ "$RUN_ICA" != "0" ]] && wrt_ica_targets "$ICA_rebuild"
# Bring over the items from the Makefile.tmp
cat $MKFILE.tmp >> $MKFILE

View file

@ -1,9 +1,21 @@
# $Id$
#----------------------------------#
wrt_ica_targets() { #
#----------------------------------#
local ICA_rebuild=$1
(
cat << EOF
ICA_rebuild: $ICA_rebuild
EOF
) >> $MKFILE
}
# Acknowledgment:
# The following code is a modified version of an original work written by
# Greg Schafer for the "DIY Linux" project and is included here with his
# permission.
# Greg Schafer for the "DIY Linux" project and is included here with his
# permission.
# ref: http://www.diy-linux.org
#
#
@ -32,15 +44,15 @@ do_ica_prep() { #
#----------------------------------#
: <<inline_doc
desc:
usage:
input vars:
usage:
input vars:
externals: --
modifies: --
returns: --
on error:
on success:
on error:
on success:
inline_doc
local CMP_DIR F L BN
@ -138,7 +150,7 @@ do_ica_work() { # Do the ICA grunt work.
#----------------------------------#
: <<inline_doc
desc:
usage: do_ica_work 1 2
do_ica_work 2 3
@ -147,8 +159,8 @@ do_ica_work() { # Do the ICA grunt work.
externals: --
modifies: --
returns: --
on error:
on success:
on error:
on success:
inline_doc
local ICA_DIR="${SCRATCH_DIR}/cmp"

View file

@ -51,12 +51,16 @@ source $COMMON_DIR/common-functions
[[ $? > 0 ]] && echo " $COMMON_DIR/common-functions did not load.." && exit
[[ $VERBOSITY > 0 ]] && echo "OK"
#
[[ $VERBOSITY > 0 ]] && echo -n "Loading masterscript conf..."
source $COMMON_DIR/config
[[ $? > 0 ]] && echo "$COMMON_DIR/conf did not load.." && exit
[[ $VERBOSITY > 0 ]] && echo "OK"
#
[[ $VERBOSITY > 0 ]] && echo -n "Loading ICA module..."
source $COMMON_DIR/func_ICA.sh
[[ $? > 0 ]] && echo "$COMMON_DIR/func_ICA.sh did not load.." && exit
[[ $VERBOSITY > 0 ]] && echo "OK"
#
[[ $VERBOSITY > 0 ]] && echo -n "Loading config module <$MODULE_CONFIG>..."
source $MODULE_CONFIG
[[ $? > 0 ]] && echo "$MODULE_CONFIG did not load.." && exit 1