glibc is lost
[nyanlinux.git] / pkg-build
blob06859f922e41c1e691c72ada1be3f981ef05f602
1 #!/bin/sh
2 if test -z "$1"; then
3 echo Missing package path to build
4 exit 1
5 fi
7 nyan_root=$(readlink -f $(dirname "$0"))
8 . ./conf.sh
9 mkdir -p $builds_dir_root
10 mkdir -p $pkgs_dir_root
12 pkg_name=$(basename $1)
14 umask 022
16 . ./builders/$1/builder.sh "$@"
18 rmdir $(readlink -f $builds_dir_root)
19 rmdir $(readlink -f $pkgs_dir_root)