From fde3965309dff69f63d057c575a5b25d606dcdf9 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Sat, 15 Nov 2008 22:04:57 -0600 Subject: add option to create local private repos running mpl works exactly like mp, except it forces the repo to "local" --- build_tools/bin/mp | 10 +++++++++- build_tools/bin/mpl | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) create mode 120000 build_tools/bin/mpl 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 -- cgit v0.12