Changeset 5573313


Ignore:
Timestamp:
03/11/2012 04:37:10 PM (12 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs
Children:
688117a
Parents:
81cd513
Message:

Add comments to BLFS/Makefile
Use /bin/echo to write the initial instpkg.xml. Hopefully, the behavior
of /bin/echo is independant on the shell
Add a sudo to a sed in finc_install_blfs (needed in some cases)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BLFS/Makefile

    r81cd513 r5573313  
    1212endif
    1313
     14# Known behavior
    1415LANG=C
    1516LC_ALL=C
     17
     18# The right-hand side is updated by jhalfs
    1619TRACKING_DIR = tracking-dir
    1720TOPDIR=$(shell pwd)
     
    6366
    6467# Beware of the echo '$(INITIAL_TRACK)' command below:
    65 # if default shell is bash, needs echo -e
    66 # if default shell is sh : echo is enough
     68# if shell is bash or sh linked to bash, needs echo -e
     69# if shell is dash or sh linked to dash: echo is enough
    6770# Don't ask me why
     71# So use /bin/echo (needs -e)
    6872$(TRACKFILE): $(TRACKING_DIR)
    6973        $(Q)if ! [ -f $@ ]; then \
    7074        echo Initializing $(TRACKFILE) && \
    71         echo '$(INITIAL_TRACK)' > $@ && \
     75        /bin/echo -e echo '$(INITIAL_TRACK)' > $@ && \
    7276        $(MAKE) $(PACK_LIST); \
    7377        fi
  • common/libs/func_install_blfs

    r81cd513 r5573313  
    3232# Because the BLFS Makefile is supposed to be used in chroot (or booted)
    3333# mode, the tracking file has wrong path for DTD. Change it:
    34 sed -i s@$BUILDDIR@@ $BUILDDIR$TRACKING_DIR/instpkg.xml
     34sudo sed -i s@$BUILDDIR@@ $BUILDDIR$TRACKING_DIR/instpkg.xml
    3535
    3636# Manually build a 'configuration' file
Note: See TracChangeset for help on using the changeset viewer.