3 # mpk - top level, user visible script.
4 # This file is part of Minipack - an automated build tool
6 # Copyright (C) 2008 Cesar Strauss
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 *) bindir
=$PWD/$bindir;;
29 prefix
=$
(cd $bindir && pwd)
33 builddir
=$topdir/build
34 resultdir
=$topdir/result
35 sourcedir
=$topdir/sources
36 recipedir
=$prefix/recipes
37 patchdir
=$prefix/patches
39 export PATH
=$tooldir:$resultdir/bin
:$PATH
41 test -f ~
/minipack.conf
&& . ~
/minipack.conf
42 test -f $topdir/minipack.conf
&& .
$topdir/minipack.conf
46 name
=$recipedir/$1.recipe
47 if [ ! -f $name ]; then
48 echo >&2 "Recipe for \"$1\" not found."
56 tool
=$tooldir/mpk-
$cmd
60 echo $prog: Invalid
command: $cmd