1
0
mirror of https://github.com/krglaws/MyLFS.git synced 2025-07-29 21:01:54 +00:00
Files
MyLFS-big_bash_script/phase4/sed.sh
2022-03-26 17:55:10 -04:00

34 lines
486 B
Bash

#!/usr/bin/env bash
# Sed Stage 6
# ~~~~~~~~~~~
set -e
cd /sources
eval "$(grep SED $PACKAGE_LIST)"
PKG_SED=$(basename $PKG_SED)
tar -xf $PKG_SED
cd ${PKG_SED%.tar*}
./configure --prefix=/usr
make
make html
if $RUN_TESTS
then
set +e
chown -R tester .
su tester -c "PATH=$PATH make check" &> $TESTLOG_DIR/sed.log
set -e
fi
make install
install -d -m755 /usr/share/doc/sed-4.8
install -m644 doc/sed.html /usr/share/doc/sed-4.8
cd /sources
rm -rf ${PKG_SED%.tar*}