summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-06-22 04:30:18 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-06-22 04:30:18 -0500
commitbfc22659aff2cc2a2832b34b7f044146e5b86184 (patch)
treed65f7a7a1c52205f482ae9ac4565c77c458eda5f
parentf54dd21db22dc09f72a67101f3d83d64c21fc404 (diff)
fullpg make build_dir
-rwxr-xr-xfullpkg3
1 files changed, 1 insertions, 2 deletions
diff --git a/fullpkg b/fullpkg
index 22ef39a..6e9ea19 100755
--- a/fullpkg
+++ b/fullpkg
@@ -377,7 +377,6 @@ while getopts 'ha:b:cCd:l:nm:r:o' arg; do
};;
c) check_deps_only='y' ;;
C) do_cleanup='y';;
- # f) force_build+="-f pkgname " ;;
d) build_dir="$OPTARG" ;;
# hidden option to know what to build first.
# if $level > 0 it will not build
@@ -413,11 +412,11 @@ fi
OFFLINE=true
}
-
# Only on level 0
if [ $level -eq 0 ]; then
# if build_dir exist use it, else make a build_dir
build_dir=${build_dir:-$(mktemp -d /tmp/fullpkg.XXXXXX)}
+ mkdir -p ${build_dir} # in case of -d option
# make files for log and buildorder
touch ${build_dir}/{log,BUILDORDER}