lfs-buildscripts/CH8Build/CH08.42-xml-parser.sh

41 lines
672 B
Bash
Raw Normal View History

2024-10-06 04:57:41 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
2024-10-09 09:50:04 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-06 04:57:41 +08:00
[ -d XML-Parser-${xml_parser_version} ] && rm -rf XML-Parser-${xml_parser_version}
tar -zxf ${xml_parser_tarball}
cd XML-Parser-${xml_parser_version}
perl Makefile.PL
make
if [ $? -ne 0 ]; then
myfail "Failed building XML Parser"
fi
2024-10-09 09:50:04 +08:00
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running XML Parser make test"
make test > ${GLSOURCES}/XML-Parser.check.log 2>&1
fi
2024-10-06 04:57:41 +08:00
make install
if [ $? -ne 0 ]; then
myfail "Failed installing XML-Parser"
fi
2024-10-08 14:25:15 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf XML-Parser-${xml_parser_version}
popd