Upgraded to follow CVS-20040525 - upgraded psmisc to 21.5
[automated_linux_from_scratch.git] / nALFS / bootstrap.libtool
blobc9ccc266e48a2839f03e2aa3694d8f1129dd07ca
1 #!/bin/bash
3 # Bootstrap script for nALFS, used to get a CVS checkout ready for use.
5 # Copyright (C) 2003
7 # Kevin P. Fleming <kpfleming@linuxfromscratch.org>
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 grep -q preserve_args gnubuild/ltmain.sh && exit 0
26 # libtool supports a --silent argument, but does not pass it to
27 # itself when it is reinvoked at the end of --mode=install processing
28 # this patch corrects that behavior to keep the "noise" down
29 # during installation
30 patch -d gnubuild -p1 <<"EOF"
31 --- libtool-1.5/ltmain.sh~ Mon Apr 14 14:58:24 2003
32 +++ libtool-1.5/ltmain.sh Thu Oct 16 09:02:56 2003
33 @@ -238,6 +238,7 @@
34 --debug)
35 $echo "$progname: enabling shell trace mode"
36 set -x
37 + preserve_args="$preserve_args $arg"
40 --dry-run | -n)
41 @@ -268,6 +269,7 @@
43 --quiet | --silent)
44 show=:
45 + preserve_args="$preserve_args $arg"
48 --tag) prevopt="--tag" prev=tag ;;
49 @@ -5653,7 +5655,7 @@
50 if test -n "$current_libdirs"; then
51 # Maybe just do a dry run.
52 test -n "$run" && current_libdirs=" -n$current_libdirs"
53 - exec_cmd='$SHELL $0 --finish$current_libdirs'
54 + exec_cmd='$SHELL $0 $preserve_args --finish$current_libdirs'
55 else
56 exit 0
59 EOF