mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.67 - Build tar
This commit is contained in:
parent
f793a3b01d
commit
e45140a410
2 changed files with 37 additions and 0 deletions
25
scripts/chapter8/8.67-tar.sh
Normal file
25
scripts/chapter8/8.67-tar.sh
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf tar-1.34.tar.xz
|
||||
cd tar-1.34
|
||||
|
||||
FORCE_UNSAFE_CONFIGURE=1 \
|
||||
./configure --prefix=/usr
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make check
|
||||
|
||||
make install
|
||||
make -C doc install-html docdir=/usr/share/doc/tar-1.34
|
|
@ -1342,3 +1342,15 @@ then
|
|||
stop_script "chapter8/8.66-patch.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.67
|
||||
# ============
|
||||
echo "Building tar"
|
||||
su -c "bash $SCRIPT/chapter8/8.67-tar.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue