mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-25 05:38:33 +00:00
31 lines
548 B
Bash
Executable File
31 lines
548 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if test -z "$1"; then
|
|
echo usage: $0 pkgname 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
# Export important variables for the build scripts
|
|
top=$(pwd)
|
|
root=$top/root
|
|
mirror=http://dl.2f30.org/morpheus-pkgs
|
|
export top root mirror
|
|
|
|
# Create directory hierarchy
|
|
mkdir -p src
|
|
mkdir -p $root/{bin,boot,dev,etc,svc,home,root,var,share,devel,sys,proc}
|
|
mkdir -p $root/dev/shm
|
|
mkdir -p $root/devel/{include,lib,src}
|
|
mkdir -p $root/share/man
|
|
pushd $root/
|
|
if [ -e sbin ]; then
|
|
unlink sbin
|
|
fi
|
|
ln -s /bin sbin
|
|
popd
|
|
|
|
PATH=$top/cross/bin:$PATH
|
|
export PATH
|
|
|
|
./build "$1"
|