X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;ds=sidebyside;f=stage3%2Fcis-tk;h=1ba210eb24addf4d8c85188aed7af9172c8d85e8;hb=5b913b7b528bb69a0c90583b8776d6d26b9cb189;hp=ae58dfe0bcfb429d619f88e70a727a6f19e59515;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage3/cis-tk b/stage3/cis-tk index ae58dfe..1ba210e 100755 --- a/stage3/cis-tk +++ b/stage3/cis-tk @@ -1,4 +1,5 @@ #!/bin/sh +set -o errexit # Reading system configuration informations, functions and package versions. source ../sysinfos @@ -6,32 +7,31 @@ source ../functions source ../packages-list # Applying patches (if any) -apply_patches ${1} && +apply_patches ${1} -cd ${LFS_TMP}/${1} && +cd ${LFS_TMP}/${1} export VERSION=$(echo ${1} | sed "s!tk\(.*\)!\1!g") -export V=`echo $VERSION | cut -d "." -f 1,2` && -export DIR=$PWD && -cd unix && -sed -i "s/relid'/relid/" configure && +export V=`echo $VERSION | cut -d "." -f 1,2` +export DIR=$PWD +cd unix +sed -i "s/relid'/relid/" configure ./configure \ --prefix=/usr \ - --enable-threads && -make && + --enable-threads +make sed -i -e "s:${DIR}/unix:/usr/lib:" \ - -e "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh && + -e "s:${DIR}:/usr/include/tk${V}:" tkConfig.sh -make install && -install -d /usr/include/tk${V}/unix && -install -m644 *.h /usr/include/tk${V}/unix/ && -install -d /usr/include/tk${V}/generic && -install -m644 ../generic/*.h /usr/include/tk${V}/generic/ && -rm -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h && -ln -nsf ../../include/tk${V} /usr/lib/tk${V}/include && -ln -sf libtk${V}.so /usr/lib/libtk.so && -ln -sf wish${V} /usr/bin/wish && +make install +install -d /usr/include/tk${V}/unix +install -m644 *.h /usr/include/tk${V}/unix/ +install -d /usr/include/tk${V}/generic +install -m644 ../generic/*.h /usr/include/tk${V}/generic/ +rm -f /usr/include/tk${V}/generic/{tk,tkDecls,tkPlatDecls}.h +ln -nsf ../../include/tk${V} /usr/lib/tk${V}/include +ln -sf libtk${V}.so /usr/lib/libtk.so +ln -sf wish${V} /usr/bin/wish ldconfig -# Return last error exit $?