Changeset 9b99ada for jhalfs


Ignore:
Timestamp:
04/01/2022 08:26:17 AM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, trunk
Children:
924a237
Parents:
30a444a
Message:

Change variable names and logic for BLFS book

Only use BLFS_COMMIT instead of BLFS_BRANCH_ID, BLFS_TREE, BLFS_BOOK
Same for le LFS_BLFS variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    r30a444a r9b99ada  
    244244#  check_blfs_tools
    245245  simple_message "${SD_BORDER}${nl_}"
    246   BLFS_GIT=${BLFS_GIT:-n}
     246  BLFS_BRANCH=${BLFS_BRANCH:-n}
    247247  BLFS_WORKING_COPY=${BLFS_WORKING_COPY:-n}
    248   BLFS_BRANCH=${BLFS_BRANCH:-n}
    249   if [[ "${BLFS_GIT}" = "y" ]]; then
    250     BLFS_BRANCH_ID=development
    251     BLFS_TREE=trunk
    252   elif [[ "${BLFS_WORKING_COPY}" = "y" ]]; then
    253     if [[ ! -d "$BLFS_WC_LOCATION/postlfs" ]] ; then
     248  if [[ "${BLFS_WORKING_COPY}" = "y" ]] &&
     249     [[ ! -d "$BLFS_WC_LOCATION/postlfs" ]] ; then
    254250      echo " BLFS tools: This is not a working copy: $BLFS_WC_LOCATION."
    255251      echo " Please rerun make and fix the configuration."
    256252      exit 2
    257     fi
    258     BLFS_TREE=$(cd $BLFS_WC_LOCATION; git branch --show-current)
    259     BLFS_BRANCH_ID=${BLFS_TREE/trunk/development}
    260   elif [[ "${BLFS_BRANCH}" = "y" ]] ; then
    261     case $BLFS_BRANCH_ID in
    262            *EDIT* )  echo " You forgot to set the BLFS branch or stable book version."
    263                      echo " Please rerun make and fix the configuration."
    264                      exit 2 ;;
    265                 * )  BLFS_TREE=${BLFS_BRANCH_ID#branch-}
    266     esac
    267253  fi
    268254  load_file "${COMMON_DIR}/libs/func_install_blfs"
Note: See TracChangeset for help on using the changeset viewer.