diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-04-17 15:40:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-04-17 15:40:10 +0100 |
commit | a4be9a729a445055e6777cf517b2bba04d073094 (patch) | |
tree | 9f18e4d824e45942a1e4c647adb861833a7e027c /devmode | |
parent | 791c1b2b7ef03116770f6bc514bc6af9861c7f0f (diff) |
try to move some functions to helper scripts
Diffstat (limited to 'devmode')
-rwxr-xr-x | devmode | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1,6 +1,6 @@ #!/usr/bin/env bash -fetch_devmod_portage_tree() { +fetch_devmode_portage_tree() { if [[ ! -d /usr/portage/.git ]] ; then cd /usr/portage && git init > /dev/null 2>&1 git remote add origin git://anongit.gentoo.org/repo/gentoo.git @@ -10,8 +10,17 @@ fetch_devmod_portage_tree() { fi } +set_devmode_portage_tree() { + ln -sf /opt/kogaion-build/conf/intel/portage /etc/portage + ln -sf /etc/portage/make.conf.amd64-devel /etc/portage/make.conf + eselect profile set 1 + env-update + . /etc/profile +} + main() { - fetch_devmod_portage_tree + fetch_devmode_portage_tree + set_devmode_portage_tree } main |