X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fcis-flex;h=ff5ae388eadc18ca543a789bec7a9d86a5497499;hb=d9a5344c1aa683d051d1a1d5e87f0bba317e299a;hp=449a627461af7b73d68eb09f5889949cdfabc646;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage2/cis-flex b/stage2/cis-flex index 449a627..ff5ae38 100755 --- a/stage2/cis-flex +++ b/stage2/cis-flex @@ -1,4 +1,6 @@ -#!/bin/sh +#!/bin/bash +set -o errexit + # First argument of this script is the package name # Reading system configuration informations, functions and package versions. @@ -7,18 +9,18 @@ source ../functions source ../packages-list # Applying patches (if any) -apply_patches ${1} && +apply_patches ${1} -cd ${LFS_TMP}/${1}-build && +cd ${LFS_TMP}/${1}-build ../${1}/configure \ - --prefix=/usr && -make -j ${MAKEJOBS} && -make install && + --prefix=/usr +make -j ${MAKEJOBS} +make install -ln -sfv libfl.a /usr/lib/libl.a && +ln -sfv libfl.a /usr/lib/libl.a # Create a bash script called lex that calls flex and have it emulate lex. -cat > /usr/bin/lex << "EOF" && +cat > /usr/bin/lex << "EOF" #!/bin/sh # /usr/bin/lex @@ -27,4 +29,4 @@ EOF chmod -v 755 /usr/bin/lex # Return last error -exit ${last_error} +exit ${?}