aboutsummaryrefslogtreecommitdiff
path: root/dev/libs
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-10-07 17:42:02 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-10-07 17:42:02 +0000
commit4d6606565cbb215bf718ec4123f60b10d0f0b469 (patch)
treeb525c00fd1ea47d3e78581395b2867604c32712b /dev/libs
parent366cf6f022627ddbcb7c282c1617d7728f62da83 (diff)
downloadslackbuilds-4d6606565cbb215bf718ec4123f60b10d0f0b469.tar.gz
slackbuilds-4d6606565cbb215bf718ec4123f60b10d0f0b469.tar.bz2
boost: fixed working folders creation at .build script
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1420 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'dev/libs')
-rwxr-xr-xdev/libs/boost/boost.build12
1 files changed, 9 insertions, 3 deletions
diff --git a/dev/libs/boost/boost.build b/dev/libs/boost/boost.build
index 11cd1ee9..fde071a7 100755
--- a/dev/libs/boost/boost.build
+++ b/dev/libs/boost/boost.build
@@ -56,7 +56,10 @@ SRC="${PACKAGE}_${VERSION_UNDERLINE}.tar.$PACKAGE_EXT"
URL="http://ufpr.dl.sourceforge.net/sourceforge/boost/$SRC"
SRC_DIR="$SRC_DIR/$PACKAGE"
-mkdir -p $SRC_DIR
+
+if [ ! -d "$SRC_DIR" ]; then
+ mkdir -p $SRC_DIR
+fi
if [ "$PACKAGE_EXT" == "bz2" ]; then
tarflag="j"
@@ -69,8 +72,11 @@ if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
fi
TMP="$TMP/$PACKAGE"
-rm -rf $TMP
-mkdir -p $TMP
+
+if [ ! -d "$TMP" ]; then
+ mkdir -p $TMP
+fi
+
cd $TMP
tar xvf$tarflag $SRC_DIR/$SRC