lfs-buildscripts/CH8Build/CH08.40-less.sh

42 lines
627 B
Bash
Raw Normal View History

2024-10-05 17:08: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-05 17:08:41 +08:00
[ -d less-${less_version} ] && rm -rf less-${less_version}
tar -zxf ${less_tarball}
cd less-${less_version}
./configure --prefix=/usr \
--sysconfdir=/etc
make
if [ $? -ne 0 ]; then
myfail "Failed building less"
fi
2024-10-09 09:50:04 +08:00
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running less make check"
make check > ${GLSOURCES}/less.check.log 2>&1
fi
2024-10-05 17:08:41 +08:00
make install
if [ $? -ne 0 ]; then
myfail "Failed installing less"
fi
2024-10-08 14:25:15 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf less-${less_version}
popd