summaryrefslogtreecommitdiffstats
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
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"
-rwxr-xr-xbuild_tools/bin/mp10
l---------build_tools/bin/mpl1
2 files changed, 10 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
diff --git a/build_tools/bin/mpl b/build_tools/bin/mpl
new file mode 120000
index 0000000..691afc3
--- /dev/null
+++ b/build_tools/bin/mpl
@@ -0,0 +1 @@
+mp \ No newline at end of file