jhalfs: rebuild-makefile. take VERSION from prbook
When rebuilding the Makefile, we should have prbook.xml in ĴHALFSDIR. Use it to get VERSION (from lfs-release).
This commit is contained in:
parent
4c32ca80bd
commit
ee96ad26f9
1 changed files with 1 additions and 10 deletions
11
jhalfs
11
jhalfs
|
@ -478,16 +478,7 @@ if [[ "$REBUILD_MAKEFILE" = "y" ]] ; then
|
||||||
clfs* )
|
clfs* )
|
||||||
VERSION=$(xmllint --noent "$BOOK/prologue/$ARCH/bookinfo.xml" 2>/dev/null | grep subtitle | sed -e 's/^.*ion //' -e 's/<\/.*//') ;;
|
VERSION=$(xmllint --noent "$BOOK/prologue/$ARCH/bookinfo.xml" 2>/dev/null | grep subtitle | sed -e 's/^.*ion //' -e 's/<\/.*//') ;;
|
||||||
lfs)
|
lfs)
|
||||||
version_is_in=general.ent
|
VERSION=$(grep 'echo.*lfs-release' "$JHALFSDIR/prbook.xml" | sed 's/.*echo[ ]*\([^ ]*\).*/\1/')
|
||||||
if [ -x $BOOK/git-version.sh ]; then
|
|
||||||
( cd $BOOK && ./git-version.sh )
|
|
||||||
version_is_in=version.ent
|
|
||||||
fi
|
|
||||||
if [[ "$INITSYS" = "sysv" ]] ; then
|
|
||||||
VERSION=$(grep 'ENTITY version ' "$BOOK/$version_is_in" | cut -d\" -f2)
|
|
||||||
else
|
|
||||||
VERSION=$(grep 'ENTITY versiond' "$BOOK/$version_is_in" | cut -d\" -f2)
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
VERSION=$(xmllint --noent "$BOOK/prologue/bookinfo.xml" 2>/dev/null | grep subtitle | sed -e 's/^.*ion //' -e 's/<\/.*//') ;;
|
VERSION=$(xmllint --noent "$BOOK/prologue/bookinfo.xml" 2>/dev/null | grep subtitle | sed -e 's/^.*ion //' -e 's/<\/.*//') ;;
|
||||||
|
|
Reference in a new issue