Change all . to source.
[catalyst.git] / targets / stage1 / stage1-chroot.sh
1 #!/bin/bash
2
3 source /tmp/chroot-functions.sh
4
5 # Setup our environment
6 export clst_buildpkgs="$(/tmp/build.py)"
7 export STAGE1_USE="$(portageq envvar STAGE1_USE)"
8 export USE="-* bindist build ${STAGE1_USE}"
9 export FEATURES="${clst_myfeatures} nodoc noman noinfo"
10
11 ## Sanity check profile
12 if [ -z "${clst_buildpkgs}" ]
13 then
14         echo "Your profile seems to be broken."
15         echo "Could not build a list of build packages."
16         echo "Double check your /etc/make.profile link and the 'packages' files."
17         exit 1
18 fi
19
20 ## START BUILD
21 clst_root_path=/ setup_portage
22
23 USE="-build" run_emerge "--oneshot --nodeps virtual/baselayout"
24
25 USE="-* bindist build ${STAGE1_USE} ${HOSTUSE}" run_emerge "--noreplace --oneshot ${clst_buildpkgs}"