Ignore:
Timestamp:
12/15/2013 07:46:46 AM (11 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
6ed3dd7
Parents:
bb7f603
Message:

Changes in func_install_blfs:

  • Add --preserve-timestamps when copying the local BLFS book working copy so that if the book has already been validated it is not validated again
  • Some scriptlet changes are not needed anymore
File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_install_blfs

    rbb7f603 r382b083  
    2929# If we have a working copy, copy it:
    3030if [[ "$BLFS_WORKING_COPY" = "y" ]]; then
     31echo "copying the local BLFS working copy (may take some time)"
    3132# -r: recursive; -u: only if newer; -T: otherwise, would copy to a subdirectory
    32 # of blfs-xml, if blfs-xml already exists
    33   cp -ruT $BLFS_WC_LOCATION ${BUILDDIR}${BLFS_ROOT}/blfs-xml
     33# of blfs-xml, if blfs-xml already exists; --preserve=timestamps: if the local
     34# book has already been validated, tmp is posterior to the others, and
     35# validation will not be done again.
     36  cp -ruT --preserve=timestamps $BLFS_WC_LOCATION \
     37                                ${BUILDDIR}${BLFS_ROOT}/blfs-xml
    3438fi
    3539# Downloads the book if necessary, initialize the tracking file and the
     
    139143sudo find . -name unpacked -exec rm \{\} \;
    140144FTP_SERVER=$SERVER/pub/blfs/ SRC_ARCHIVE=$SRC_ARCHIVE $BUILDDIR$BLFS_ROOT/download_script
    141 # The blfs-bootscripts package is at the wrong location
    142 mkdir -p blfs-bootscripts
    143 cp blfs-bootscripts*tar* blfs-bootscripts
    144145popd
    145146rm -v $BUILDDIR$BLFS_ROOT/download_script
    146147
    147148# Suppresses unneeded parts of the scriptlets
    148 if [ "$DEP_WGET" = y ] && ! [ "$DEP_OPENSSL" = y ]; then
    149   sed -i s'/-ssl=.*/out-ssl/' $BUILDDIR$BLFS_ROOT/scripts/*wget
    150 fi
    151149if [ "$DEP_SUDO" = y ]; then
    152150  sed -i '/pam.d/i mkdir -p /etc/pam.d' $BUILDDIR$BLFS_ROOT/scripts/*sudo
     
    154152if [ "$DEP_SVN" = y ]; then
    155153  sed -i -e /javahl/d -e /swig/d $BUILDDIR$BLFS_ROOT/scripts/*subversion
    156   sed -i -e '/pushd/,/popd/d' -e /tea/d $BUILDDIR$BLFS_ROOT/scripts/*sqlite
    157 fi
    158 if [ "$DEP_PYTHON" = y ]; then
    159   sed -i -e '/^make.*Doc/d' -e '/^chmod/{n;N;d}' $BUILDDIR$BLFS_ROOT/scripts/*python2
    160 fi
    161 if [ "$DEP_OPENSSL" = y ]; then
    162   sed -i 's/^make$/make -j1/' $BUILDDIR$BLFS_ROOT/scripts/*openssl
    163154fi
    164155if [ "$DEP_LYNX" = y ]; then
Note: See TracChangeset for help on using the changeset viewer.