diff options
Diffstat (limited to 'scripts/layman_reinit.sh')
-rw-r--r-- | scripts/layman_reinit.sh | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/scripts/layman_reinit.sh b/scripts/layman_reinit.sh deleted file mode 100644 index 6729149..0000000 --- a/scripts/layman_reinit.sh +++ /dev/null @@ -1,21 +0,0 @@ -#! /bin/bash - -( - repos=$(xmllint -xpath "//repo/name/text()|//repo/source/text()" /etc/portage/layman.xml | xargs -n2) - - cd /etc/portage - - layman -d ALL - git checkout -- layman.xml - - for repo in $(cat /etc/portage/repos.conf/layman.conf | grep -oP "\[\K[^]]*"); do - repo_src=$(echo "$repos" | grep -P "^$repo" | awk '{ print $2 }') - if [ -n "$repo_src" ]; then - layman -a "$repo" -O "$repo_src" - else - layman -a "$repo" - fi - done - - git checkout -- layman.xml -) |