Changeset 7bd0866 for BLFS


Ignore:
Timestamp:
06/19/2016 02:41:18 PM (8 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
new_features
Children:
04952c63
Parents:
99ba6d8
Message:

Merge trunk up to revision 3864

Location:
BLFS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BLFS/Makefile

    r99ba6d8 r7bd0866  
    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-makefile.sh

    r99ba6d8 r7bd0866  
    157157
    158158if [[ ! -d ${BUILD_SCRIPTS} ]] ; then
    159   echo -e "\n\tThe \'${BUILD_SCRIPTS}\' directory has not been found.\n"
     159  echo -e "\n\tThe '${BUILD_SCRIPTS}' directory has not been found.\n"
    160160  exit 1
    161161fi
    162162
    163 # Let us make a clean base:
     163# Let us make a clean base, but first ensure that we are
     164# not emptying a useful directory.
     165MYDIR=$(pwd)
     166MYDIR=$(basename $MYDIR)
     167if [ "${MYDIR#work}" = "${MYDIR}" ] ; then
     168  echo -e \\n\\tDirectory ${BOLD}$MYDIR${OFF} does not begin with \"work\"\\n
     169  exit 1
     170fi
     171
    164172rm -rf *
    165173
  • BLFS/gen-special.sh

    r99ba6d8 r7bd0866  
    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.