lfs-scripts/scripts/chapter6/6.11-gzip.sh

26 lines
249 B
Bash
Raw Normal View History

2023-01-09 08:46:32 +00:00
#!/bin/bash
cd $LFS/sources
tar xf gzip-1.12.tar.xz
cd gzip-1.12
./configure --prefix=/usr --host=$LFS_TGT
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make DESTDIR=$LFS install
cd $LFS/sources
rm -rf gzip-1.12