mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-25 05:02:53 +00:00
35 lines
452 B
Bash
35 lines
452 B
Bash
#!/bin/bash
|
|
|
|
cd /sources
|
|
tar xf gmp-6.2.1.tar.xz
|
|
cd gmp-6.2.1
|
|
|
|
./configure --prefix=/usr \
|
|
--enable-cxx \
|
|
--disable-static \
|
|
--docdir=/usr/share/doc/gmp-6.2.1
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
exit 1
|
|
fi
|
|
|
|
make -j5
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
exit 1
|
|
fi
|
|
|
|
make html
|
|
|
|
make check 2>&1 | tee gmp-check-log
|
|
|
|
awk '/# PASS:/{total+=$3} ; END{print total}' gmp-check-log
|
|
|
|
make install
|
|
make install-html
|
|
|
|
cd /sources
|
|
rm -rf gmp-6.2.1
|
|
|