summaryrefslogtreecommitdiffstats
path: root/build_tools/bin/mp
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-16 04:04:57 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-16 04:04:57 (GMT)
commitfde3965309dff69f63d057c575a5b25d606dcdf9 (patch)
tree29493d53411322ce7ca4e1ab116da855af461f47 /build_tools/bin/mp
parent2b1ef4ece4d24c22730ce0dc864fe3ac68156569 (diff)
downloadlinhes_dev-fde3965309dff69f63d057c575a5b25d606dcdf9.zip
add option to create local private repos
running mpl works exactly like mp, except it forces the repo to "local"
Diffstat (limited to 'build_tools/bin/mp')
-rwxr-xr-xbuild_tools/bin/mp10
1 files changed, 9 insertions, 1 deletions
diff --git a/build_tools/bin/mp b/build_tools/bin/mp
index 49dfb1b..102454e 100755
--- a/build_tools/bin/mp
+++ b/build_tools/bin/mp
@@ -42,7 +42,15 @@ function find_repo {
REPO=mv-core
fi
+ if [ x`basename $0` = xmpl ]
+ then
+ REPO="local"
+ fi
DOCROOT=/data/pkg_repo/$CARCH/$REPO
+ if [ ! -e $DOCROOT ]
+ then
+ mkdir -p $DOCROOT
+ fi
}
@@ -83,7 +91,7 @@ function update-src-pkg {
}
-
+#MAIN PROGRAM
find_repo