Changeset 4ed4a32 for BLFS/Makefile
- Timestamp:
- 05/01/2021 07:22:06 AM (3 years ago)
- Branches:
- ablfs-more, legacy, trunk
- Children:
- 2ac2fc5
- Parents:
- b3825c3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/Makefile
rb3825c3 r4ed4a32 57 57 endef 58 58 59 # Git locations and branches 59 60 LFS-GIT = git://git.linuxfromscratch.org/lfs.git 61 LFS-BRANCH = trunk 60 62 GIT = git://git.linuxfromscratch.org/blfs.git 63 BLFS-BRANCH = trunk 61 64 62 65 ALLXML := $(filter-out $(RENDERTMP)/%, \ … … 179 182 all: update $(BOOK_XML) 180 183 184 # If in detached head state, "git pull" returns an error, so switch back to 185 # trunk before updating, and switch back to the branch/tag afterwards 181 186 update: $(BLFS_XML) $(LFS_XML) 182 187 @echo Updating the book sources 183 $(Q)cd $(LFS_XML) && git pull 184 $(Q)cd $(BLFS_XML) && git pull 188 $(Q)cd $(LFS_XML) && \ 189 if [ $(LFS-BRANCH) != trunk ]; then git switch -; fi && \ 190 git pull && \ 191 git checkout $(LFS-BRANCH) 192 $(Q)cd $(BLFS_XML) && \ 193 if [ $(BLFS-BRANCH) != trunk ]; then git switch -; fi && \ 194 git pull && \ 195 git checkout $(BLFS-BRANCH) 185 196 186 197 $(LFS_XML): 187 198 @echo Getting the LFS book sources... 188 199 $(Q)git clone $(LFS-GIT) $@ 200 if [ $(LFS-BRANCH) != trunk ]; then \ 201 cd $@ && \ 202 git checkout $(LFS-BRANCH); \ 203 fi 189 204 190 205 $(BLFS_XML): 191 206 @echo Getting the BLFS book sources... 192 207 $(Q)git clone $(GIT) $@ 208 if [ $(BLFS-BRANCH) != trunk ]; then \ 209 cd $@ && \ 210 git checkout $(BLFS-BRANCH); \ 211 fi 193 212 194 213 # Clean up
Note:
See TracChangeset
for help on using the changeset viewer.