Changeset 4f3c433 for BLFS


Ignore:
Timestamp:
06/13/2016 04:51:45 PM (8 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, trunk
Children:
78d4779
Parents:
878a5a0
Message:

Fix for using the BLFS "double" book. Note that it does not work if one of the
revisions has been rendered, and you want to switch to the other one

Location:
BLFS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BLFS/Makefile

    r878a5a0 r4f3c433  
    55
    66# $Id$
     7
     8ifeq ($(REV),)
     9  REV = sysv
     10endif
     11
     12ifneq ($(REV),sysv)
     13  ifneq ($(REV),systemd)
     14    $(error The REV variable is $(REV), but can only be 'sysv' or 'systemd')
     15  endif
     16endif
    717
    818ifdef V
     
    98108
    99109$(BLFS_FULL): $(BLFS_XML) $(BLFS_XML)/general.ent $(ALLXML) $(ALLXSL)
     110        $(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
     111        @echo "Adjusting for revision $(REV)..."
     112        $(Q)xsltproc --nonet --xinclude                          \
     113                     --stringparam profile.revision $(REV)       \
     114                     --output $(RENDERTMP)/blfs-prof.xml         \
     115                     $(BLFS_XML)/stylesheets/lfs-xsl/profile.xsl \
     116                     $(BLFS_XML)/index.xml
    100117        @echo "Validating the book..."
    101         $(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
    102         $(Q)xmllint --nonet --noent --xinclude --postvalid \
    103           -o $@ $(BLFS_XML)/index.xml
     118        $(Q)xmllint --nonet --noent --postvalid \
     119          -o $@ $(RENDERTMP)/blfs-prof.xml
    104120
    105121all: update $(BOOK_XML)
  • BLFS/gen-special.sh

    r878a5a0 r4f3c433  
    3535
    3636# Packages whose version does not begin with a number
    37 EXCEPTIONS=$(grep 'ENTITY.*version[ ]*"[^0-9"&.].*[0-9]' $BLFS_XML |
     37EXCEPTIONS=$(grep 'ENTITY.*version[ ]*"[^0-9"&.].*[0-9]' ${BLFS_DIR}/packages.ent |
    3838             sed 's@^[^"]*"\([^"]*\)".*@\1@')
    3939
Note: See TracChangeset for help on using the changeset viewer.