[jhalfs] 01/03: Make the kernel filesystem scriptlets executable

"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 87eb9e9a946f507b46803e4d1f5508b7ce54c3b2
Author: Pierre Labastie <[email protected]>
AuthorDate: Thu Oct 6 10:20:34 2022 +0200

    Make the kernel filesystem scriptlets executable
    
    This is so that they can be run from the main Makefile, instead
    of having to edit them to put them inside the Makefile.
---
 common/kernfs.xsl            | 2 ++
 common/libs/func_book_parser | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/common/kernfs.xsl b/common/kernfs.xsl
index 2f875de..f47f665 100644
--- a/common/kernfs.xsl
+++ b/common/kernfs.xsl
@@ -7,6 +7,8 @@
   <xsl:output method="text"/>
 
   <xsl:template match="/">
+    <xsl:text>#!/bin/bash
+</xsl:text>
     <xsl:apply-templates select="//userinput[contains(string(),'--bind') or
                                              contains(string(),'/proc') or
                                              contains(string(),'readlink') or
diff --git a/common/libs/func_book_parser b/common/libs/func_book_parser
index 229cee0..10115b8 100644
--- a/common/libs/func_book_parser
+++ b/common/libs/func_book_parser
@@ -159,9 +159,11 @@ create_kernfs_scripts() {    #
   xsltproc --nonet \
            -o kernfs-scripts/devices.sh kernfs.xsl \
            $BOOK/*/kernfs.xml >> $LOGDIR/$LOG 2>&1
+  chmod +x kernfs-scripts/devices.sh
   xsltproc --nonet \
            -o kernfs-scripts/teardown.sh kernfs.xsl \
            $BOOK/chapter??/reboot.xml >> $LOGDIR/$LOG 2>&1
+  chmod +x kernfs-scripts/teardown.sh
 
   echo "done"
 

-- 
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.