aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/bash.sh
blob: 96d3db18392a79355c4261d6682522d859282977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# shellcheck disable=SC2016

patch -Np1 -i ../bash-"${VERSION}"-fixes-2.patch &&

sed -i  '/^bashline.o:.*shmbchar.h/a bashline.o: ${DEFDIR}/builtext.h' Makefile.in &&

./configure --prefix=/usr \
            --docdir=/usr/share/doc/bash-"${VERSION}" \
            --without-bash-malloc \
            --with-installed-readline &&

make &&

make -j1 install &&
mv -vf /usr/bin/bash /bin

#exec /bin/bash --login +h