From 4d6606565cbb215bf718ec4123f60b10d0f0b469 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sun, 7 Oct 2007 17:42:02 +0000 Subject: 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 --- dev/libs/boost/boost.build | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'dev') 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 -- cgit v1.2.3