When copying packageManager.xml, use a sed to replace BOOK with $BOOK

This allows loading entities from the lfs book
This commit is contained in:
Pierre Labastie 2020-07-06 05:23:47 +00:00
parent 959319749e
commit 5a965adf4f

3
jhalfs
View file

@ -411,7 +411,8 @@ if [[ "$REBUILD_MAKEFILE" = "n" ]] ; then
# Copy packageManager.xml, if needed
[[ "$PKGMNGT" = "y" ]] && [[ "$PROGNAME" = "lfs" ]] && {
cp "$PKGMNGTDIR/packageManager.xml" "$JHALFSDIR/"
sed s@BOOK@"$BOOK"@ "$PKGMNGTDIR/packageManager.xml" > \
"$JHALFSDIR/"packageManager.xml
cp "$PKGMNGTDIR/packInstall.sh" "$JHALFSDIR/"
}