mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.38 - Build expat
This commit is contained in:
parent
37e5539358
commit
4361a1c931
2 changed files with 42 additions and 0 deletions
30
scripts/chapter8/8.38-expat.sh
Normal file
30
scripts/chapter8/8.38-expat.sh
Normal file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf expat-2.4.8.tar.xz
|
||||
cd expat-2.4.8
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/expat-2.4.8
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make check
|
||||
|
||||
make install
|
||||
|
||||
install -v -m644 doc/*.{html,css} /usr/share/doc/expat-2.4.8
|
||||
|
||||
cd /sources
|
||||
rm -rf expat-2.4.8
|
|
@ -990,3 +990,15 @@ then
|
|||
stop_script "chapter8/8.37-gperf.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.38
|
||||
# ============
|
||||
echo "Building expat"
|
||||
su -c "bash $SCRIPT/chapter8/8.38-expat.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.38-expat.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue