lfs-buildscripts/CH8Build/CH08.40-less.sh
2024-10-05 02:08:41 -07:00

31 lines
503 B
Bash

#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -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
echo "running less make check"
make check > ${GLSOURCES}/less.check 2>&1
make install
if [ $? -ne 0 ]; then
myfail "Failed installing less"
fi