build problem LFS 6.5

Philippe Delavalade philippe.delavalade at sfr.fr
Fri Nov 27 09:08:54 PST 2009


Le vendredi 27 novembre à 15:38, stosss a écrit :
> 1st half of one of my scripts
> 
> #!/bin/bash
> tar -xvf vim-7.2.tar.bz2
> cd vim72
> patch -Np1 -i ../vim-7.2-fixes-5.patch
> echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
> ./configure --prefix=/usr --enable-multibyte
> make
> make test
> 
> 2nd half of the script for the vim app
> 
> #!/bin/bash
> cd vim72
> make install
> ln -sv vim /usr/bin/vi
> for L in  /usr/share/man/{,*/}man1/vim.1; do
>     ln -sv vim.1 $(dirname $L)/vi.1
> done
> ln -sv ../vim/vim72/doc /usr/share/doc/vim-7.2
> cat > /etc/vimrc << "EOF"
> " Begin /etc/vimrc
> 
> set nocompatible
> set backspace=2
> syntax on
> if (&term == "iterm") || (&term == "putty")
>   set background=dark
> endif
> 
> " End /etc/vimrc
> EOF
> cd ..
> rm -rf vim72
> 
> I copied these commands straight off the pages of the book and put
> them in shell scripts and ran the scripts.

Maybe you should redirect the output and test the exit code of each command
in your scripts...

-- 
--------------
Ph. Delavalade




More information about the lfs-support mailing list