Removing any functions that we now call by default when we source chroot-functions...
[catalyst.git] / targets / grp / grp-chroot.sh
1 #!/bin/bash
2
3 . /tmp/chroot-functions.sh
4
5 ## START BUILD
6 setup_portage
7
8 unset DISTDIR
9
10 # Don't grab MS core fonts, etc.
11 export USE="${USE} ${clst_HOSTUSE} ${clst_use}"
12
13 if [ "${clst_grp_type}" = "pkgset" ]
14 then
15         unset DISTDIR
16         export PKGDIR="/tmp/grp/${clst_grp_target}"
17
18         run_emerge --usepkg --buildpkg --noreplace --newuse ${clst_myemergeopts} \
19                 ${clst_grp_packages} || exit 1
20 else
21         DISTDIR="/tmp/grp/${clst_grp_target}" run_emerge --fetchonly \
22                 ${clst_grp_packages} || exit 1
23         unset PKGDIR
24 fi