summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild_tools/bin/mp8
1 files changed, 5 insertions, 3 deletions
diff --git a/build_tools/bin/mp b/build_tools/bin/mp
index 102454e..5a75ca5 100755
--- a/build_tools/bin/mp
+++ b/build_tools/bin/mp
@@ -23,20 +23,21 @@ fi
function find_repo {
- echo $mydir|grep -q "extra"
+ dirname=`dirname $mydir`
+ echo $dirname|grep -q "extra"
if [ $? = 0 ]
then
REPO=extra${PFIX}
else
REPO=core${PFIX}
fi
- echo $mydir|grep -q "chroot-devel"
+ echo $dirname|grep -q "chroot-devel"
if [ $? = 0 ]
then
REPO=chroot-devel
fi
- echo $mydir|grep -q "mv-core"
+ echo $dirname|grep -q "mv-core"
if [ $? = 0 ]
then
REPO=mv-core
@@ -51,6 +52,7 @@ function find_repo {
then
mkdir -p $DOCROOT
fi
+
}