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'`
|
||||
fi
|
||||
|
||||
#--------------------------------------------------------------------#
|
||||
# >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<< #
|
||||
#--------------------------------------------------------------------#
|
||||
#
|
||||
# Drop in the name of the target on a new line plus its dependencies
|
||||
# and call the echo_message function.
|
||||
(
|
||||
|
@ -87,11 +91,11 @@ EOF
|
|||
|
||||
# Include a touch of the target name so make can check
|
||||
# if it's already been made.
|
||||
(
|
||||
cat << EOF
|
||||
@touch \$@
|
||||
EOF
|
||||
) >> $MKFILE
|
||||
echo -e '\t@touch $@' >> $MKFILE.tmp
|
||||
#
|
||||
#--------------------------------------------------------------------#
|
||||
# >>>>>>>> END OF Makefile ENTRY <<<<<<<< #
|
||||
#--------------------------------------------------------------------#
|
||||
|
||||
done
|
||||
echo -ne "done\n"
|
||||
|
|
|
@ -764,10 +764,9 @@ get_sources() {
|
|||
if [ "$HPKG" = "1" ] ; then
|
||||
|
||||
# This variable is necessary to make sure the `cat $JHALFSDIR/packages`
|
||||
# separates each iteration by lines. It is necessary to have the second
|
||||
# ' on the next line.
|
||||
IFS='
|
||||
'
|
||||
# separates each iteration by lines.
|
||||
# Modify the 'internal field separator' to break on 'LF' only
|
||||
IFS=$'\x0A'
|
||||
|
||||
if [ ! -d $BUILDDIR/sources ] ; then mkdir $BUILDDIR/sources ; fi
|
||||
cd $BUILDDIR/sources
|
||||
|
|
Reference in a new issue