Dan McGhee wrote: <snipped all>
I forgot to attach the script. Sorry. Dan
#!/bin/bash # # Build script for <PACKAGE> # # This build script is meant to be executed from within the source directory # created by extracting the tarball. # # It will create 6 log files in the $HOME directory: # configure.log: All messages output during configure # configure.err: Just the errors output during configure # make.log: All messages output during make # make.err: Just the errors output during make # install.log: All messages output during make install # install.err: Just the errors output during make install # # After running the script you should check the *.err files to see # if any problems have occurred. If that is the case, use the corresponding # *.log files to see the error messages in context. # Note: the ":;" before the "}" in *_commands() is a no-op that makes sure # that the function remains syntactically valid, even if you remove its # contents (e.g. remove the "configure" line, because there's nothing to # configure for the package). # # This script was originally written by Matthias S. Benkman for use in his # package management system using package users. This system is # detailed at # http://linuxfromscratch.org/hints/downloads/files/more_control_and_pkg_man.txt # It was modified by Dan McGhee 20060122 for using in scripting the # Xorg-7.0 build in BLFS. configure_commands() { : ./configure --prefix=/tmp/test } make_commands() { : make } install_commands() { : make install } test_pipe() { for i in "[EMAIL PROTECTED]" do test $i != 0 && { echo FAILED! ; exit 1 ; } done echo successful! return 0 } echo -n Configuring $PWD... { configure_commands 3>&1 1>&2 2>&3 | tee "$PWD-configure.err" ;} &>"$PWD-configure.log" test_pipe # NOTE: Simply using && instead of test_pipe would not work, because && # only tests the exit status of the last command in the pipe, which is tee. echo -n Building $PWD... { make_commands 3>&1 1>&2 2>&3 | tee "$PWD-make.err" ;} &>"$PWD-make.log" test_pipe echo -n Installing $PWD... { install_commands 3>&1 1>&2 2>&3 | tee "$PWD-install.err" ;} &>"$PWD-install.log" test_pipe
-- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
