aboutsummaryrefslogtreecommitdiffstats
path: root/chapter6/bash.sh
blob: 54c10a7bd8aaf4de7dca76380f4cc798730d3a96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<<<<<<< HEAD
#!/bin/bash
set -e

patch -Np1 -i ../bash-"${VERSION}"-fixes-1.patch &&
./configure --prefix=/usr \
            --build="$(support/config.guess)" \
            --host="${LFS_TGT}" \
            --without-bash-malloc &&
make &&
make DESTDIR="${LFS}" -j1 install &&
mv "${LFS}"/usr/bin/bash "${LFS}"/bin/bash &&
ln -sv bash "${LFS}"/bin/sh
=======
#!/bin/bash
set -e

patch -Np1 -i ../bash-"${VERSION}"-fixes-2.patch &&
./configure --prefix=/usr \
            --build="$(support/config.guess)" \
            --host="${LFS_TGT}" \
            --without-bash-malloc &&
make &&
make DESTDIR="${LFS}" -j1 install &&
mv "${LFS}"/usr/bin/bash "${LFS}"/bin/bash &&
ln -sv bash "${LFS}"/bin/sh
>>>>>>> 6132c19762b7d74ba7ad06e291b6401c632bbc28