r1767 - in profiles/LFS/trunk: chapter05 skeleton skeleton/home skeleton/home/lfs

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Sat Feb 12 10:01:53 PST 2005


Author: kpfleming
Date: 2005-02-12 11:01:52 -0700 (Sat, 12 Feb 2005)
New Revision: 1767

Added:
   profiles/LFS/trunk/skeleton/home/
   profiles/LFS/trunk/skeleton/home/lfs/
   profiles/LFS/trunk/skeleton/home/lfs/dot.bash_profile
   profiles/LFS/trunk/skeleton/home/lfs/dot.bashrc
Modified:
   profiles/LFS/trunk/chapter05/settingenvironment.xml
Log:
move .bash_profile and .bashrc (for LFS user) to skeleton



Modified: profiles/LFS/trunk/chapter05/settingenvironment.xml
===================================================================
--- profiles/LFS/trunk/chapter05/settingenvironment.xml	2005-02-12 17:41:07 UTC (rev 1766)
+++ profiles/LFS/trunk/chapter05/settingenvironment.xml	2005-02-12 18:01:52 UTC (rev 1767)
@@ -10,22 +10,18 @@
     <stageinfo>
       <user>&lfs-user;</user>
     </stageinfo>
-    <textdump>
-      <file>&lfs-user-dir;/.bash_profile</file>
-      <content>
-	=exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
-      </content>
-    </textdump>
-    <textdump>
-      <file>&lfs-user-dir;/.bashrc</file>
-      <content>
-      	=set +h
-	=umask 022
-	=LFS=&LFS;
-	=LC_ALL=POSIX
-	=PATH=/tools/bin:/bin:/usr/bin
-	=export LFS LC_ALL PATH
-      </content>
-    </textdump>
+    <copy>
+      <source>&skeleton_dir;/home/lfs/dot_bash_profile</source>
+      <destination>&lfs-user-dir;.bash_profile</destination>
+    </copy>
+    <copy>
+      <source>&skeleton_dir;/home/lfs/dot_bashrc</source>
+      <destination>&lfs-user-dir;.bashrc</destination>
+    </copy>
+    <search_replace>
+      <file>&lfs-user-dir;.bashrc</file>
+      <find>[LFS]</find>
+      <replace>&LFS;</replace>
+    </search_replace>
   </stage>
 </alfs>

Added: profiles/LFS/trunk/skeleton/home/lfs/dot.bash_profile
===================================================================
--- profiles/LFS/trunk/skeleton/home/lfs/dot.bash_profile	2005-02-12 17:41:07 UTC (rev 1766)
+++ profiles/LFS/trunk/skeleton/home/lfs/dot.bash_profile	2005-02-12 18:01:52 UTC (rev 1767)
@@ -0,0 +1 @@
+exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash

Added: profiles/LFS/trunk/skeleton/home/lfs/dot.bashrc
===================================================================
--- profiles/LFS/trunk/skeleton/home/lfs/dot.bashrc	2005-02-12 17:41:07 UTC (rev 1766)
+++ profiles/LFS/trunk/skeleton/home/lfs/dot.bashrc	2005-02-12 18:01:52 UTC (rev 1767)
@@ -0,0 +1,6 @@
+set +h
+umask 022
+LFS=[LFS]
+LC_ALL=POSIX
+PATH=/tools/bin:/bin:/usr/bin
+export LFS LC_ALL PATH




More information about the alfs-log mailing list