cgit: Added cgit 0.7.3-c502865 - A CGI for git written in C
[opensde-package-nopast.git] / shells / bash / bash.conf
blob0134eeba0481027141e5234c4bf1f77e97c69d45
1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../bash/bash.conf
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 Clifford Wolf
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- SDE-COPYRIGHT-NOTE-END ---
16 bash_which=1
18 pkg_bash_postmake() {
19         if [ "$bash_which" = "1" ]; then
20                 echo "Creating 'usr/bin/which' and 'bin/sh' ..."
21                 echo -e '#!/bin/bash\ntype -p "$@"' > $root/usr/bin/which
22                 chmod +x $root/usr/bin/which
23         else
24                 echo "Creating 'bin/sh' ..."
25         fi
26         [ -f $root/usr/bin/bash ] && \
27                 mv -v $root/usr/bin/bash $root/bin/bash
28         ln -sfv bash $root/bin/sh
30         if [ "$SDECFG_CREATE_DOCS" != 0 ] ; then
31                 echo "Unpacking bash documentation ..."
32                 tar $taropt `match_source_file -p bash-doc`
33         fi
36 pkg_bash_preconf() {
37         # historic hack - still needed? -ReneR
38         touch lib/malloc/malloc.c
39         for x in `match_source_file -p 'bash3.*-.*'` ; do
40                 echo "Applying patch ${x##*/} ..."
41                 patch -p0 < $x
42         done
45 pkg_bash_docver=$ver
47 var_append confopt " " "--without-bash-malloc"
49 [ "$SDECFG_PKG_BASH_PROGCOMP" = 0 ] &&
50         var_append confopt " " "--disable-progcomp"
51 [ "$SDECFG_PKG_BASH_HELP_CMD" = 0 ] &&
52         var_append confopt " " "--disable-help-builtin"
54 hook_add preconf 5 "pkg_bash_preconf"
55 hook_add premake 5 "eval $MAKE $makeopt builtins/builtext.h" # parallel make
56 hook_add postmake 5 "pkg_bash_postmake"