chmod +x all sh scripts so they can run from the git checkout
[catalyst.git] / targets / grp / grp-chroot.sh
1 #!/bin/bash
2
3 source /tmp/chroot-functions.sh
4
5 ## START BUILD
6 setup_pkgmgr
7
8 export DISTDIR="/tmp/grp/${clst_grp_target}"
9 export PKGDIR="/tmp/grp/${clst_grp_target}"
10
11 if [ "${clst_grp_type}" = "pkgset" ]
12 then
13         export clst_myemergeopts="${clst_myemergeopts} --noreplace"
14 else
15         export clst_FETCH=1
16         # This is necessary since we're setting the above variable and the emerge
17         # opts have already been set
18         setup_myemergeopts
19 fi
20
21 run_merge ${clst_grp_packages} || exit 1