lfs-scripts/scripts/chapter8/8.29-sed.sh

32 lines
369 B
Bash
Raw Normal View History

2023-01-11 09:58:21 +00:00
#!/bin/bash
cd /sources
tar xf sed-4.8.tar.xz
cd sed-4.8
./configure --prefix=/usr
if [ $? -ne 0 ]
then
exit 1
fi
make
if [ $? -ne 0 ]
then
exit 1
fi
make html
chown -Rv tester .
su tester -c "PATH=$PATH make check"
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 sed-4.8