Changeset e3f4b9a4 for BLFS


Ignore:
Timestamp:
08/17/2017 11:27:07 AM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
91e8eaa
Parents:
ce244f6
Message:

Fix grepping for VERSION (func_install_blfs)
Add LFS-Release (update-lfs.sh and func_install_blfs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/update-lfs.sh

    rce244f6 re3f4b9a4  
    9696
    9797if [ x$ANSWER = "xyes" ] ; then
    98   for pack in $(grep '<productname' $LFS_FULL |
    99                 sed 's/.*>\([^<]*\)<.*/\1/' |
    100                 sort | uniq); do
    101     if [ "$pack" = "libstdc++" ]; then continue; fi
    102     VERSION=$(grep -A1 ">$pack</product" $LFS_FULL |
    103                 head -n2 |
    104                 sed -n '2s/.*>\([^<]*\)<.*/\1/p')
     98    for pack in $(grep '<productname' $LFS_FULL |
     99                  sed 's/.*>\([^<]*\)<.*/\1/' |
     100                  sort | uniq); do
     101        if [ "$pack" = "libstdc++" ]; then continue; fi
     102        VERSION=$(grep -A1 ">$pack</product" $LFS_FULL |
     103                    head -n2 |
     104                    sed -n '2s/.*>\([^<]*\)<.*/\1/p')
    105105#Debug
    106106echo $pack: $VERSION
    107107#End debug
     108        xsltproc --stringparam packages $MYDIR/packages.xml \
     109                 --stringparam package $pack \
     110                 --stringparam version $VERSION \
     111                 -o track.tmp \
     112                 $MYDIR/xsl/bump.xsl ${TRACKFILE}
     113        sed -i "s@PACKDESC@$MYDIR/packdesc.dtd@" track.tmp
     114        xmllint --format --postvalid track.tmp > ${TRACKFILE}
     115        rm track.tmp
     116    done
     117    VERSION=$(grep 'echo.*lfs-release' $LFS_FULL |
     118              sed 's/.*echo[ ]*\([^ ]*\).*/\1/')
     119#Debug
     120echo LFS-Release: $VERSION
     121#End debug
    108122    xsltproc --stringparam packages $MYDIR/packages.xml \
    109              --stringparam package $pack \
     123             --stringparam package LFS-Release \
    110124             --stringparam version $VERSION \
    111125             -o track.tmp \
     
    114128    xmllint --format --postvalid track.tmp > ${TRACKFILE}
    115129    rm track.tmp
    116   done
    117130fi
    118131#Debug
Note: See TracChangeset for help on using the changeset viewer.