From 46ac3305f34af8ff405700a2ec45313f2a9962c3 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 30 Apr 2017 21:50:25 +0000 Subject: [PATCH] Fix the path to the book used when "Rebuild the Makefile" has been selected --- jhalfs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jhalfs b/jhalfs index 4e0eaa0..cd8ae27 100755 --- a/jhalfs +++ b/jhalfs @@ -443,16 +443,16 @@ fi if [[ "$REBUILD_MAKEFILE" = "y" ]] ; then case $PROGNAME in clfs* ) - VERSION=$(xmllint --noent $JHALFSDIR/$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) if [[ "$INITSYS" = "sysv" ]] ; then - VERSION=$(grep 'ENTITY version ' $JHALFSDIR/$BOOK/general.ent| cut -d\" -f2) + VERSION=$(grep 'ENTITY version ' $BOOK/general.ent| cut -d\" -f2) else - VERSION=$(grep 'ENTITY versiond' $JHALFSDIR/$BOOK/general.ent| cut -d\" -f2) + VERSION=$(grep 'ENTITY versiond' $BOOK/general.ent| cut -d\" -f2) fi ;; *) - VERSION=$(xmllint --noent $JHALFSDIR/$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/<\/.*//') ;; esac fi