1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-25 06:58:35 +00:00
morpheus/pkgbuild
sin 09331bacd2 Add sample usage to pkgbuild
Clarify the existing semantics as well.
2014-02-20 16:14:52 +00:00

34 lines
789 B
Bash
Executable File

#!/bin/sh
#
# Simple package build script.
# For example to build the kernel do: ./pkgbuild kernel
#
# Please note that if the package has already been unpacked in src/
# then it will not be unpacked again. This is to make it easy
# to build new packages by first hacking src/<pkg> until it can be
# successfully compiled. If you want to force unpacking of the package
# simply rm the unpacked directory. Similarly if you want to force
# re-downloading of the package, simply rm the packed version as well.
umask 022
if test -z "$1"; then
echo usage: $0 pkg... 1>&2
exit 1
fi
. ./prepare-env
if test "$(uname -m)" != "$arch"; then
echo You need an $arch host to build morpheus 1>&2
exit 1
fi
. ./prepare-root
mkdir -p src
while [ $# -gt 0 ]; do
./build "pkgs/$1"
shift
done