diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-11-18 19:02:36 +0000 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-11-18 19:02:36 +0000 |
commit | e7556077b90f8332d0e537725b4853e09c4cc50e (patch) | |
tree | 543db9a79c43f9911474a5ddaf0983b6214e2e34 /binmode | |
parent | f0de9ffcc540de0499f37b656f7564a89c85314a (diff) |
make all mode changing scripts functions and merge them into libvasile
Diffstat (limited to 'binmode')
-rwxr-xr-x | binmode | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/binmode b/binmode deleted file mode 100755 index 2ee6d06..0000000 --- a/binmode +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -fetch_usermode_portage_tree() { - if [[ ! -d "$portagedir"/.git ]] ; then - cd "$portagedir" && git init > /dev/null 2>&1 - git remote add origin https://gitlab.com/redcore/portage.git - git config core.sparsecheckout true - echo "profiles/*" >> .git/info/sparse-checkout - echo "metadata/*" >> .git/info/sparse-checkout - echo "eclass/*" >> .git/info/sparse-checkout - echo ".gitignore" >> .git/info/sparse-checkout - git pull --depth=1 origin master - git branch -u origin/master master - rm -rf ""$portagedir"/profiles/updates" - fi -} - -set_usermode_portage_tree() { - ln -sf "$gitdir" "$confdir" - ln -sf "$confdir"/make.conf.amd64-binmode "$confdir"/make.conf - eselect profile set 1 - env-update - . /etc/profile -} - -main() { - fetch_usermode_portage_tree - set_usermode_portage_tree -} - -main |