lfs-buildscripts/CH8Build/CH08.31-gettext.sh

44 lines
763 B
Bash
Raw Normal View History

2024-10-05 12:24:49 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
2024-10-09 03:43:22 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-05 12:24:49 +08:00
[ -d gettext-${gettext_version} ] && rm -rf gettext-${gettext_version}
tar -Jxf ${gettext_tarball}
cd gettext-${gettext_version}
./configure --prefix=/usr \
--disable-static \
--docdir=/usr/share/doc/gettext-${gettext_version}
make
if [ $? -ne 0 ]; then
myfail "Failed building gettext"
fi
2024-10-09 03:43:22 +08:00
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running gettext make check"
make check > ${GLSOURCES}/gettext.check.log 2>&1
fi
2024-10-05 12:24:49 +08:00
make install
if [ $? -ne 0 ]; then
myfail "Failed installing gettext"
fi
chmod 0755 /usr/lib/preloadable_libintl.so
2024-10-08 12:28:55 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf gettext-${gettext_version}
popd