summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/include/common.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/include/common.sh b/scripts/include/common.sh
index cd5f399..6baea91 100644
--- a/scripts/include/common.sh
+++ b/scripts/include/common.sh
@@ -13,6 +13,16 @@ function common_build_init {
exit 3
fi
+ if [ ! -d "../env" ]; then
+ mkdir -p "../env"
+ fi
+ if [ ! -d "../bin" ]; then
+ mkdir -p "../bin"
+ fi
+ if [ ! -d "../tmp" ]; then
+ mkdir -p "../tmp"
+ fi
+
export builddir=$(realpath "${dir}/../tmp/${package}")
export bindir=$(realpath "${dir}/../bin/${installname}")