lfs-buildscripts/CH8Build/CH08.58-diffutils.sh
YellowJacketLinux 907484e0ca more packages
2024-10-06 10:55:01 -07:00

30 lines
537 B
Bash

#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d diffutils-${diffutils_version} ] && rm -rf diffutils-${diffutils_version}
tar -Jxf ${diffutils_tarball}
cd diffutils-${diffutils_version}
./configure --prefix=/usr
make
if [ $? -ne 0 ]; then
myfail "Failed building diffutils"
fi
echo "running diffutils make check"
make check > ${GLSOURCES}/diffutils.check 2>&1
make install
if [ $? -ne 0 ]; then
myfail "Failed installing diffutils"
fi