mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-24 04:32:54 +00:00
Add 8.11 - Build readline
This commit is contained in:
parent
231028167b
commit
f0a584b52d
2 changed files with 44 additions and 0 deletions
33
scripts/chapter8/8.11-readline.sh
Normal file
33
scripts/chapter8/8.11-readline.sh
Normal 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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue