Add 8.11 - Build readline

This commit is contained in:
Aditya 2023-01-10 15:24:05 +05:30
parent 231028167b
commit f0a584b52d
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,33 @@
#!/bin/bash
cd /sources
tar xf readline-8.1.2.tar.gz
cd readline-8.1.2
sed -i '/MV.*old/d' Makefile.in
sed -i '/{OLDSUFF}/c:' support/shlib-install
./configure --prefix=/usr \
--disable-static \
--with-curses \
--docdir=/usr/share/doc/readline-8.1.2
if [ $? -ne 0 ]
then
exit 1
fi
make SHLIB_LIBS="-lncursesw" -j5
if [ $? -ne 0 ]
then
exit 1
fi
make SHLIB_LIBS="-lncursesw" install
install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-8.1.2
cd /sources
rm -rf readline-8.1.2

View file

@ -666,4 +666,15 @@ then
stop_script "chapter8/8.10-file.sh"
fi
# Chapter 8.11
# ============
echo "Building readline"
su -c "bash $SCRIPT/chapter8/8.11-readline.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter8/8.11-readline.sh"
fi