modified and commented the IFS var. inside common_functions
This commit is contained in:
parent
49b1e9a50a
commit
4bf0fc31f5
2 changed files with 12 additions and 9 deletions
|
@ -65,6 +65,10 @@ EOF
|
||||||
OPTIONAL=`grep "OPTIONAL" $file | sed 's/# OPTIONAL://' | tr -d '\n'`
|
OPTIONAL=`grep "OPTIONAL" $file | sed 's/# OPTIONAL://' | tr -d '\n'`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------#
|
||||||
|
# >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<< #
|
||||||
|
#--------------------------------------------------------------------#
|
||||||
|
#
|
||||||
# Drop in the name of the target on a new line plus its dependencies
|
# Drop in the name of the target on a new line plus its dependencies
|
||||||
# and call the echo_message function.
|
# and call the echo_message function.
|
||||||
(
|
(
|
||||||
|
@ -87,11 +91,11 @@ EOF
|
||||||
|
|
||||||
# Include a touch of the target name so make can check
|
# Include a touch of the target name so make can check
|
||||||
# if it's already been made.
|
# if it's already been made.
|
||||||
(
|
echo -e '\t@touch $@' >> $MKFILE.tmp
|
||||||
cat << EOF
|
#
|
||||||
@touch \$@
|
#--------------------------------------------------------------------#
|
||||||
EOF
|
# >>>>>>>> END OF Makefile ENTRY <<<<<<<< #
|
||||||
) >> $MKFILE
|
#--------------------------------------------------------------------#
|
||||||
|
|
||||||
done
|
done
|
||||||
echo -ne "done\n"
|
echo -ne "done\n"
|
||||||
|
|
|
@ -764,10 +764,9 @@ get_sources() {
|
||||||
if [ "$HPKG" = "1" ] ; then
|
if [ "$HPKG" = "1" ] ; then
|
||||||
|
|
||||||
# This variable is necessary to make sure the `cat $JHALFSDIR/packages`
|
# This variable is necessary to make sure the `cat $JHALFSDIR/packages`
|
||||||
# separates each iteration by lines. It is necessary to have the second
|
# separates each iteration by lines.
|
||||||
# ' on the next line.
|
# Modify the 'internal field separator' to break on 'LF' only
|
||||||
IFS='
|
IFS=$'\x0A'
|
||||||
'
|
|
||||||
|
|
||||||
if [ ! -d $BUILDDIR/sources ] ; then mkdir $BUILDDIR/sources ; fi
|
if [ ! -d $BUILDDIR/sources ] ; then mkdir $BUILDDIR/sources ; fi
|
||||||
cd $BUILDDIR/sources
|
cd $BUILDDIR/sources
|
||||||
|
|
Reference in a new issue