aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/bash.sh
blob: 81d91c1a25fa4e8173ad405268254911789d1d74 (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-1.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