- Timestamp:
- 09/16/2021 04:30:58 AM (3 years ago)
- Branches:
- ablfs-more, legacy, trunk
- Children:
- e22aa96
- Parents:
- b5d1c50
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/libs/func_book_parser
rb5d1c50 r840b9ba 54 54 55 55 cd $JHALFSDIR 56 case $PROGNAME in57 clfs*)58 VERSION=$(xmllint --noent $BOOK/BOOK/prologue/$ARCH/bookinfo.xml 2>/dev/null | grep subtitle | sed -e 's/^.*ion //' -e 's/<\/.*//') ;;59 lfs)60 if [ "$INITSYS" = "sysv" ] ; then61 VERSION=$(grep 'ENTITY version ' $BOOK/general.ent| cut -d\" -f2)62 else63 VERSION=$(grep 'ENTITY versiond' $BOOK/general.ent| cut -d\" -f2)64 fi65 ;;66 *)67 VERSION=$(xmllint --noent $BOOK/prologue/bookinfo.xml 2>/dev/null | grep subtitle | sed -e 's/^.*ion //' -e 's/<\/.*//') ;;68 esac69 70 56 # Clean 71 57 rm -rf ${PROGNAME}-commands … … 206 192 207 193 # Create the packages file. We need it for proper Makefile creation 208 # lfs does not use this anymore, but th eiis taken care in the209 # fun tion body194 # lfs does not use this anymore, but this is taken care in the 195 # function body 210 196 create_package_list 211 197 # On the other hand, lfs needs two auxiliary files … … 215 201 fi 216 202 203 # we create the VERSION variable here. Should maybe go into its own 204 # function. But at this point we can use the profiled xml to get 205 # version from lfs-release in the lfs case. 206 case $PROGNAME in 207 clfs*) 208 VERSION=$(xmllint --noent $BOOK/BOOK/prologue/$ARCH/bookinfo.xml 2>/dev/null | grep subtitle | sed -e 's/^.*ion //' -e 's/<\/.*//') ;; 209 lfs) 210 VERSION=$(grep 'echo.*lfs-release' prbook.xml | sed 's/.*echo[ ]*\([^ ]*\).*/\1/') 211 ;; 212 *) 213 VERSION=$(xmllint --noent $BOOK/prologue/bookinfo.xml 2>/dev/null | grep subtitle | sed -e 's/^.*ion //' -e 's/<\/.*//') ;; 214 esac 215 217 216 # Done. Moving on... 218 217 get_sources 219 220 218 } 221 219
Note:
See TracChangeset
for help on using the changeset viewer.