Changeset 9b99ada for install-blfs-tools.sh
- Timestamp:
- 04/01/2022 08:26:17 AM (2 years ago)
- Branches:
- ablfs-more, trunk
- Children:
- 924a237
- Parents:
- 30a444a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
install-blfs-tools.sh
r30a444a r9b99ada 11 11 BLFS_ROOT : where the installed tools will be installed, relative to $HOME. 12 12 Must start with a '/' (default /blfs_root) 13 BLFS_ BRANCH_ID: development, branch-xxx, xxx (where xxx is a valid tag)14 (default development)15 LFS_ BRANCH_ID : development, branch-xxx, xxx (where xxx is a valid tag)16 (default development)13 BLFS_COMMIT : any commit (branch/tag/sha) 14 (default trunk) 15 LFS_COMMIT : any commit (branch/tag/sha) 16 (default trunk) 17 17 Examples: 18 18 1 - If you plan to use the tools to build BLFS on top of LFS, but you did not … … 68 68 if [ "$BOOK_BLFS" = y ]; then 69 69 ## Read variables and sanity checks 70 [[ "$relGIT" = y ]] && BLFS_BRANCH_ID=development 71 [[ "$BRANCH" = y ]] && BLFS_BRANCH_ID=$BRANCH_ID 70 [[ "$BRANCH" = y ]] && BLFS_COMMIT=$COMMIT 72 71 [[ "$WORKING_COPY" = y ]] && BLFS_BOOK=$BOOK 73 [[ "$BRANCH_ID" = "**EDIT ME**" ]] &&74 echo You have not set the BLFS book version or branch && exit 175 72 [[ "$BOOK" = "**EDIT ME**" ]] && 76 73 echo You have not set the BLFS working copy location && exit 1 77 [[ "$LFS_relGIT" = y ]] && LFS_BRANCH_ID=development 78 [[ "$LFS_BRANCH" = y ]] && LFS_BRANCH_ID=$BLFS_LFS_BRANCH_ID 74 [[ "$LFS_BRANCH" = y ]] && LFS_COMMIT=$BLFS_LFS_COMMIT 79 75 [[ "$LFS_WORKING_COPY" = y ]] && LFS_BOOK=$BLFS_LFS_BOOK 80 [[ "$LFS_BRANCH_ID" = "**EDIT ME**" ]] &&81 echo You have not set the LFS book version or branch && exit 182 76 [[ "$LFS_BOOK" = "**EDIT ME**" ]] && 83 77 echo You have not set the LFS working copy location && exit 1 … … 91 85 TRACKING_DIR="${TRACKING_DIR:=/var/lib/jhalfs/BLFS}" 92 86 INITSYS="${INITSYS:=sysv}" 93 BLFS_ BRANCH_ID=${BLFS_BRANCH_ID:=development}94 LFS_ BRANCH_ID=${LFS_BRANCH_ID:=development}87 BLFS_COMMIT=${BLFS_COMMIT:=trunk} 88 LFS_COMMIT=${LFS_COMMIT:=trunk} 95 89 BLFS_XML=${BLFS_XML:=blfs-xml} 96 90 LFS_XML=${LFS_XML:=lfs-xml} … … 101 95 PARAMS="$PARAMS WORKING_COPY BLFS_BOOK" 102 96 else 103 PARAMS="$PARAMS BLFS_ BRANCH_ID"97 PARAMS="$PARAMS BLFS_COMMIT" 104 98 fi 105 99 if [ "$LFS_WORKING_COPY" = y ]; then 106 100 PARAMS="$PARAMS LFS_WORKING_COPY LFS_BOOK" 107 101 else 108 PARAMS="$PARAMS LFS_ BRANCH_ID"102 PARAMS="$PARAMS LFS_COMMIT" 109 103 fi 110 104 # Format for displaying parameters: … … 131 125 132 126 [[ $VERBOSITY > 0 ]] && echo "${SD_BORDER}${nl_}" 133 134 case $BLFS_BRANCH_ID in135 development ) BLFS_TREE=trunk ;;136 branch-* ) BLFS_TREE=${BLFS_BRANCH_ID#branch-} ;;137 * ) BLFS_TREE=${BLFS_BRANCH_ID} ;;138 esac139 case $LFS_BRANCH_ID in140 development ) LFS_TREE=trunk ;;141 branch-* ) LFS_TREE=${LFS_BRANCH_ID#branch-} ;;142 * ) LFS_TREE=${LFS_BRANCH_ID} ;;143 esac144 127 145 128 # Check for build prerequisites. … … 194 177 REV=$INITSYS \ 195 178 LFS_XML=$BUILDDIR$BLFS_ROOT/$LFS_XML \ 196 LFS-GIT=git://git.linuxfromscratch.org/lfs.git \ 197 LFS-BRANCH=${LFS_TREE} \ 179 LFS-BRANCH=${LFS_COMMIT} \ 198 180 BLFS_XML=$BUILDDIR$BLFS_ROOT/$BLFS_XML \ 199 GIT=git://git.linuxfromscratch.org/blfs.git \ 200 BLFS-BRANCH=${BLFS_TREE} \ 181 BLFS-BRANCH=${BLFS_COMMIT} \ 201 182 $BUILDDIR$BLFS_ROOT/packages.xml 202 183 [[ $VERBOSITY > 0 ]] && echo "... OK"
Note:
See TracChangeset
for help on using the changeset viewer.