r2072 - jhalfs/trunk

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Tue Oct 4 12:32:48 PDT 2005


Author: manuel
Date: 2005-10-04 13:32:47 -0600 (Tue, 04 Oct 2005)
New Revision: 2072

Modified:
   jhalfs/trunk/dump-lfs-scripts.xsl
Log:
A few scripts need /tools/bin/bash as the sha-bang to can be executed.

Modified: jhalfs/trunk/dump-lfs-scripts.xsl
===================================================================
--- jhalfs/trunk/dump-lfs-scripts.xsl	2005-10-04 19:12:07 UTC (rev 2071)
+++ jhalfs/trunk/dump-lfs-scripts.xsl	2005-10-04 19:32:47 UTC (rev 2072)
@@ -43,7 +43,16 @@
       </xsl:variable>
         <!-- Creating dirs and files -->
       <exsl:document href="{$dirname}/{$order}-{$filename}" method="text">
-        <xsl:text>#!/bin/sh&#xA;&#xA;</xsl:text>
+        <xsl:choose>
+          <xsl:when test="@id='ch-system-changingowner' or
+                    @id='ch-system-creatingdirs' or
+                    @id='ch-system-createfiles'">
+            <xsl:text>#!/tools/bin/bash&#xA;&#xA;</xsl:text>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:text>#!/bin/sh&#xA;&#xA;</xsl:text>
+          </xsl:otherwise>
+        </xsl:choose>
         <xsl:if test="sect2[@role='installation'] or
                 @id='ch-tools-adjusting' or
                 @id='ch-system-readjusting'">




More information about the alfs-log mailing list