summaryrefslogtreecommitdiff
path: root/devmodeset
diff options
context:
space:
mode:
Diffstat (limited to 'devmodeset')
-rwxr-xr-xdevmodeset14
1 files changed, 9 insertions, 5 deletions
diff --git a/devmodeset b/devmodeset
index 3ebffa0..cd28d1b 100755
--- a/devmodeset
+++ b/devmodeset
@@ -1,18 +1,22 @@
#!/usr/bin/env bash
+export local portagedir="/usr/portage"
+export local confdir="/etc/portage"
+export local gitdir="/opt/kogaion-build/conf/intel/portage"
+
fetch_devmode_portage_tree() {
- if [[ ! -d /usr/portage/.git ]] ; then
- cd /usr/portage && git init > /dev/null 2>&1
+ if [[ ! -d "$portagedir"/.git ]] ; then
+ cd "$portagedir" && git init > /dev/null 2>&1
git remote add origin git://anongit.gentoo.org/repo/gentoo.git
git pull --depth=1 origin master
git branch -u origin/master master
- rm -rf /usr/portage/profiles/updates
+ rm -rf ""$portagedir"/profiles/updates"
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
+ ln -sf "$gitdir" "$confdir"
+ ln -sf "$confdir"/make.conf.amd64-devel "$confdir"/make.conf
eselect profile set 1
env-update
. /etc/profile