aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/bash.sh
blob: e9c9884fa0c110202bdb86bbb311cf175ccb2865 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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