[jhalfs] 02/06: install_blfs: update trackdir also in gen_pkg_book.sh

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

commit b734bfb4c6cbc9bb06ec4a2c87a5c9a61e745802
Author: Pierre Labastie <[email protected]>
AuthorDate: Sun Dec 19 14:24:04 2021 +0100

    install_blfs: update trackdir also in gen_pkg_book.sh
    
    Now gen_pkf_book.sh depends on trackfile. This can be passed
    as an argument, but to ease calling it standalone, we need to
    set the default to the actual file used.
---
 BLFS/gen_pkg_book.sh          | 2 +-
 common/libs/func_install_blfs | 2 +-
 install-blfs-tools.sh         | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/BLFS/gen_pkg_book.sh b/BLFS/gen_pkg_book.sh
index bbde94a..e6aab30 100755
--- a/BLFS/gen_pkg_book.sh
+++ b/BLFS/gen_pkg_book.sh
@@ -6,7 +6,7 @@ set -e
 
 TRACKFILE=$1
 if test -z "$TRACKFILE"; then
-  TRACKFILE=/var/lib/jhalfs/BLFS/instpkg.xml
+  TRACKFILE=tracking-dir/instpkg.xml
 fi
 TOPDIR=$2
 if test -z "$TOPDIR"; then
diff --git a/common/libs/func_install_blfs b/common/libs/func_install_blfs
index e5fa477..5953c14 100644
--- a/common/libs/func_install_blfs
+++ b/common/libs/func_install_blfs
@@ -21,7 +21,7 @@ fi
 
 # Set some harcoded envars to their proper values
 sed -i s@tracking-dir@$TRACKING_DIR@ \
-    ${BUILDDIR}${BLFS_ROOT}/{Makefile,gen-makefile.sh}
+    ${BUILDDIR}${BLFS_ROOT}/{Makefile,gen-makefile.sh,gen_pkg_book.sh}
 sed -i s@trunk/BOOK@$BLFS_TREE@ \
     ${BUILDDIR}${BLFS_ROOT}/Makefile
 
diff --git a/install-blfs-tools.sh b/install-blfs-tools.sh
index 8fd3009..e2f1b8e 100755
--- a/install-blfs-tools.sh
+++ b/install-blfs-tools.sh
@@ -166,7 +166,7 @@ rm -rf ${BUILDDIR}${BLFS_ROOT}/$LFS_XML
 
 # Set some harcoded envars to their proper values
 sed -i s@tracking-dir@$TRACKING_DIR@ \
-    ${BUILDDIR}${BLFS_ROOT}/{Makefile,gen-makefile.sh}
+    ${BUILDDIR}${BLFS_ROOT}/{Makefile,gen-makefile.sh,gen_pkg_book.sh}
 
 # Ensures the tracking directory exists.
 # Throws an error if it does not exist and the user does not

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.