lfs-scripts/scripts/chapter7/7.8-bison.sh

26 lines
272 B
Bash

#!/bin/bash
cd /sources
tar xf bison-3.8.2.tar.xz
cd bison-3.8.2
./configure --prefix=/usr \
--docdir=/usr/share/doc/bison-3.8.2
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make install
cd $LFS/sources
rm -rf bison-3.8.2