lfs-buildscripts/CH7Build/CH07.01-gettext.sh

35 lines
500 B
Bash
Raw Normal View History

2024-10-04 02:50:57 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
2024-10-08 15:12:55 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-04 02:50:57 +08:00
[ -d gettext-${gettext_version} ] && rm -rf gettext-${gettext_version}
tar -Jxf ${gettext_tarball}
cd gettext-${gettext_version}
./configure --disable-shared
make
if [ $? -ne 0 ]; then
myfail "Failed building gettext"
fi
2024-10-08 15:12:55 +08:00
cp gettext-tools/src/{msgfmt,msgmerge,xgettext} /usr/bin
popd
# cleanup
pushd ${GLSOURCES}
rm -rf gettext-${gettext_version}
popd
2024-10-04 02:50:57 +08:00