]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
boost: added error handling
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Sun, 9 Dec 2007 18:31:27 +0000 (18:31 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Sun, 9 Dec 2007 18:31:27 +0000 (18:31 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1524 370017ae-e619-0410-ac65-c121f96126d4

dev/libs/boost/boost.build

index fde071a78a752abb80409ae02362c03e764e8343..85e8d8d656f08aa3e501ea433fe7bad0df596bd9 100755 (executable)
@@ -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