lfs-buildscripts/CH8Build/CH08.45-automake.sh

42 lines
743 B
Bash
Raw Normal View History

2024-10-06 04:57:41 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
2024-10-09 09:50:04 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-06 04:57:41 +08:00
[ -d automake-${automake_version} ] && rm -rf automake-${automake_version}
tar -Jxf ${automake_tarball}
cd automake-${automake_version}
./configure --prefix=/usr \
--docdir=/usr/share/doc/automake-${automake_version}
make
if [ $? -ne 0 ]; then
myfail "Failed building automake"
fi
2024-10-09 09:50:04 +08:00
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running automake make check"
make -j$(($(nproc)>4?$(nproc):4)) check > ${GLSOURCES}/automake.check.log 2>&1
fi
2024-10-06 04:57:41 +08:00
make install
if [ $? -ne 0 ]; then
myfail "Failed installing automake"
fi
2024-10-08 14:25:15 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf automake-${automake_version}
popd