diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2001-02-15 15:26:52 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2001-02-15 15:26:52 +0000 |
commit | b08f4096533577934b885fa9df41d3881d141612 (patch) | |
tree | 8e5ffc0ba65ac34d97cd6a896d33b85a897a6da8 /chapter05/bash-exp.xml | |
parent | ad08014624938a3a3bfd1b44e8b27d02c7b06dd8 (diff) |
Initial XML commit
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@174 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/bash-exp.xml')
-rw-r--r-- | chapter05/bash-exp.xml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/chapter05/bash-exp.xml b/chapter05/bash-exp.xml new file mode 100644 index 000000000..57c22ea1e --- /dev/null +++ b/chapter05/bash-exp.xml @@ -0,0 +1,54 @@ +<sect2> +<title>Command explanations</title> + +<para> +<userinput>--enable-static-link:</userinput> This configure +option causes Bash to be linked statically +</para> + +<para> +<userinput>--prefix=$LFS/usr:</userinput> This configure option installs +all of Bash's files under the $LFS/usr directory, which becomes the /usr +directory after you chroot into $LFS or when you reboot the system into LFS. +</para> + +<para> +<userinput>--bindir=$LFS/bin:</userinput> This installs the executable +files in $LFS/bin. We do this because we want bash to be in /bin, not in +/usr/bin. One reason being: your /usr partition might be on a seperate +partition which has to be mounted at some point. Before that partition is +mounted you need and will want to have bash available (it will be hard to +execute the boot scripts without a shell for instance). +</para> + +<para> +<userinput>--disable-nls:</userinput> This disables the build of NLS +(National Language Support). It's only a waste of time for now as Bash +will be reinstalled in the next chapter. +</para> + +<para> +<userinput>--with-curses:</userinput> This causes Bash to be linked +against the curses library instead of the default termcap library which +is becoming obsolete. +</para> + +<para> +<userinput>ln -s bash sh:</userinput> This command creates the sh +symlink that points to bash. Most scripts run themselves via 'sh' +(invoked by the #!/bin/sh as the first line in the scripts) which +invokes a special bash mode. Bash will then behave (as closely as +possible) as the original Bourne shell. +</para> + +<para> +The <userinput>&&</userinput>'s at the end of every line cause +the next command only to be executed when the previous command exists +with a return value of 0 indicating success. In case you copy&paste +all of these commands on the shell you want to be ensured that if +./configure fails, make isn't being executed and likewise if make fails +that make install isn't being executed, and so forth. +</para> + +</sect2> + |