X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fcis-bzip2;h=aa2631001e2e4bed5bebccf9a2e1749797eaf589;hb=07bb6026cea496a885d217cc5f505ca3896d78b8;hp=96f9dbe855b3bad4c850500341fc825e556c42fd;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage2/cis-bzip2 b/stage2/cis-bzip2 index 96f9dbe..aa26310 100755 --- a/stage2/cis-bzip2 +++ b/stage2/cis-bzip2 @@ -1,4 +1,6 @@ #!/bin/sh +set -o errexit + # First argument of this script is the package name # Reading system configuration informations, functions and package versions. @@ -7,20 +9,19 @@ source ../functions source ../packages-list # Applying patches (if any) -apply_patches ${1} && +apply_patches ${1} -cd ${LFS_TMP}/${1} && -make -f Makefile-libbz2_so && -make clean && -make -j ${MAKEJOBS} && -make PREFIX=/usr install && +cd ${LFS_TMP}/${1} +make -f Makefile-libbz2_so +make clean +make -j ${MAKEJOBS} +make PREFIX=/usr install -cp -fv bzip2-shared /bin/bzip2 && -cp -afv libbz2.so* /lib && -ln -sfv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so && -rm -fv /usr/bin/{bunzip2,bzcat,bzip2} && -ln -sfv bzip2 /bin/bunzip2 && -ln -sfv bzip2 /bin/bzcat +cp -fv bzip2-shared /bin/bzip2 +cp -afv libbz2.so* /lib +ln -sfvT ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so +rm -fv /usr/bin/{bunzip2,bzcat,bzip2} +ln -sfvT bzip2 /bin/bunzip2 +ln -sfvT bzip2 /bin/bzcat -# Return last error exit $?