]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
boost: fixed working folders creation at .build script
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Sun, 7 Oct 2007 17:42:02 +0000 (17:42 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Sun, 7 Oct 2007 17:42:02 +0000 (17:42 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1420 370017ae-e619-0410-ac65-c121f96126d4

dev/libs/boost/boost.build

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