1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-28 14:31:40 +00:00
morpheus/pkgbuild

34 lines
789 B
Plaintext
Raw Normal View History

2013-09-06 07:40:52 +00:00
#!/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.
2013-09-05 11:31:58 +00:00
umask 022
2013-09-05 11:31:58 +00:00
if test -z "$1"; then
echo usage: $0 pkg... 1>&2
2013-09-05 11:31:58 +00:00
exit 1
fi
2013-09-17 14:26:52 +00:00
. ./prepare-env
2013-09-07 14:31:43 +00:00
2014-02-14 12:22:37 +00:00
if test "$(uname -m)" != "$arch"; then
2013-09-25 11:20:03 +00:00
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