Author: pierre
Date: Fri Sep 27 02:59:32 2019
New Revision: 4129
Log:
Remove the lfs- prefix when writing to the instpkg file, for lfs bootscripts
Modified:
jhalfs/trunk/BLFS/gen-makefile.sh
Modified: jhalfs/trunk/BLFS/gen-makefile.sh
==============================================================================
--- jhalfs/trunk/BLFS/gen-makefile.sh Wed Sep 25 08:36:20 2019 (r4128)
+++ jhalfs/trunk/BLFS/gen-makefile.sh Fri Sep 27 02:59:32 2019 (r4129)
@@ -50,12 +50,15 @@
#----------------------------------#
__wrt_touch() { #
#----------------------------------#
- local pkg_name=$1
+local pkg_name="${1#*-?-}"
+# For having a unique id, we have added lfs- to bootscripts package.
+# We need to remove it now.
+case "$pkg_name" in lfs-bootscripts) pkg_name=bootscripts ;; esac
(
cat << EOF
@xsltproc --stringparam packages ${PACK_FILE} \\
- --stringparam package ${pkg_name#*-?-} \\
+ --stringparam package "${pkg_name}" \\
-o track.tmp \\
${BUMP} \$(TRACKING_FILE) && \\
sed -i 's@PACKDESC@${ATOPDIR}/packdesc.dtd@' track.tmp && \\
--
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page