aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/bash.sh
blob: 6bbd448f484740fb59ace883e580445b9e7bf0c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
set -e

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

# shellcheck disable=SC2016
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