Skip unwanted scripts for iteration builds.
This commit is contained in:
parent
aa08925b73
commit
b242136880
1 changed files with 16 additions and 8 deletions
|
@ -146,7 +146,7 @@ chapter5_Makefiles() {
|
||||||
chapter6_Makefiles() {
|
chapter6_Makefiles() {
|
||||||
#----------------------------#
|
#----------------------------#
|
||||||
# Set N and chapter6 for iteration targets
|
# Set N and chapter6 for iteration targets
|
||||||
if [[ -z $1 ]] ; then
|
if [[ -z "$1" ]] ; then
|
||||||
local N=""
|
local N=""
|
||||||
else
|
else
|
||||||
local N=-build_$1
|
local N=-build_$1
|
||||||
|
@ -166,13 +166,25 @@ chapter6_Makefiles() {
|
||||||
*stripping*) [[ "${STRIP}" = "0" ]] && continue ;;
|
*stripping*) [[ "${STRIP}" = "0" ]] && continue ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Grab the name of the target
|
||||||
|
name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@'`
|
||||||
|
|
||||||
|
# Find the version of the command files, if it corresponds with the building of
|
||||||
|
# a specific package. We need this here to can skip scripts not needed for
|
||||||
|
# iterations rebuilds
|
||||||
|
vrs=`grep "^$name-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
|
||||||
|
|
||||||
|
if [[ "$vrs" = "" ]] && [[ -n "$N" ]] ; then
|
||||||
|
case "${this_script}" in
|
||||||
|
*stripping*) ;;
|
||||||
|
*) continue ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
# First append each name of the script files to a list (this will become
|
# First append each name of the script files to a list (this will become
|
||||||
# the names of the targets in the Makefile
|
# the names of the targets in the Makefile
|
||||||
chapter6="$chapter6 ${this_script}${N}"
|
chapter6="$chapter6 ${this_script}${N}"
|
||||||
|
|
||||||
# Grab the name of the target
|
|
||||||
name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@'`
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------#
|
#--------------------------------------------------------------------#
|
||||||
# >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<< #
|
# >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<< #
|
||||||
#--------------------------------------------------------------------#
|
#--------------------------------------------------------------------#
|
||||||
|
@ -181,10 +193,6 @@ chapter6_Makefiles() {
|
||||||
# as a dependency. Also call the echo_message function.
|
# as a dependency. Also call the echo_message function.
|
||||||
wrt_target "${this_script}${N}" "$PREV"
|
wrt_target "${this_script}${N}" "$PREV"
|
||||||
|
|
||||||
# Find the version of the command files, if it corresponds with the building of
|
|
||||||
# a specific package
|
|
||||||
vrs=`grep "^$name-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
|
|
||||||
|
|
||||||
# If $vrs isn't empty, we've got a package...
|
# If $vrs isn't empty, we've got a package...
|
||||||
# Insert instructions for unpacking the package and changing directories
|
# Insert instructions for unpacking the package and changing directories
|
||||||
if [ "$vrs" != "" ] ; then
|
if [ "$vrs" != "" ] ; then
|
||||||
|
|
Reference in a new issue