aboutsummaryrefslogtreecommitdiff
path: root/dev/libs
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-12-09 18:31:27 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-12-09 18:31:27 +0000
commit03b3f15439565844b09814aa257c6df9ca3cc216 (patch)
tree9cde02bf592501b6ba68450a739fb171d9f7aec2 /dev/libs
parent47a2a756ed769754a8ee0940fb6e252f299a4347 (diff)
downloadslackbuilds-03b3f15439565844b09814aa257c6df9ca3cc216.tar.gz
slackbuilds-03b3f15439565844b09814aa257c6df9ca3cc216.tar.bz2
boost: added error handling
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1524 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'dev/libs')
-rwxr-xr-xdev/libs/boost/boost.build20
1 files changed, 7 insertions, 13 deletions
diff --git a/dev/libs/boost/boost.build b/dev/libs/boost/boost.build
index fde071a7..85e8d8d6 100755
--- a/dev/libs/boost/boost.build
+++ b/dev/libs/boost/boost.build
@@ -61,14 +61,8 @@ if [ ! -d "$SRC_DIR" ]; then
mkdir -p $SRC_DIR
fi
-if [ "$PACKAGE_EXT" == "bz2" ]; then
- tarflag="j"
-else
- tarflag="z"
-fi
-
-if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
- wget "$URL" -O "$SRC_DIR/$SRC"
+if [ ! -f "$SRC_DIR/$SRC" ]; then
+ wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET
fi
TMP="$TMP/$PACKAGE"
@@ -79,16 +73,16 @@ fi
cd $TMP
-tar xvf$tarflag $SRC_DIR/$SRC
+tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR
cd ${PACKAGE}_${VERSION_UNDERLINE}
if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then
- patch -p0 < $CWD/$PACKAGE-$VERSION.diff
+ patch -p0 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH
fi
-./configure --prefix=/usr --libdir=$LIBDIR --with-libraries=all
-make || exit 32
-make install
+./configure --prefix=/usr --libdir=$LIBDIR --with-libraries=all || exit $ERROR_CONF
+make || exit $ERROR_MAKE
+make install || exit $ERROR_INSTALL
cd /usr/include && ln -s /usr/include/boost-$VERSION_UNDERLINE/ /usr/include/boost