mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
Add 8.42 - Build xml parser
This commit is contained in:
parent
0ebac94eb3
commit
ebae03e4f9
2 changed files with 38 additions and 0 deletions
26
scripts/chapter8/8.42-xml-parser.sh
Normal file
26
scripts/chapter8/8.42-xml-parser.sh
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf XML-Parser-2.46.tar.gz
|
||||
cd XML-Parser-2.46
|
||||
|
||||
perl Makefile.PL
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make test
|
||||
|
||||
make install
|
||||
|
||||
cd /sources
|
||||
rm -rf XML-Parser-2.46
|
|
@ -1043,3 +1043,15 @@ then
|
|||
stop_script "chapter8/8.41-perl.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.42
|
||||
# ============
|
||||
echo "Building XML::Parser"
|
||||
su -c "bash $SCRIPT/chapter8/8.42-xml-parser.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.42-xml-parser.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue