lfs-buildscripts/CH8Build/CH08.32-bison.sh
2024-10-04 21:24:49 -07:00

31 lines
543 B
Bash

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