import 'vcs/svn'

name=kBuild
revision=2823
version=r$revision

vcs_svn 'http://svn.netlabs.org/repos/kbuild/trunk' 2823
header_end

cd trunk
rm -rf kBuild/bin  # Remove prebuilts

variables="
    NIX_INSTALL_DIR=/$dir_prefix
    MY_INST_BIN=$dir_prefix/$dir_bindir/
    MY_INST_DATA=$dir_prefix/$dir_datadir/$name/
    MY_INST_DOC=$dir_prefix/$dir_docdir/$name/
"

kBuild/env.sh --full make -f bootstrap.gmk $variables
kBuild/env.sh --full-with-bin kmk $variables PATH_INS="$dir_install" install

# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: