diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/bootstrap/builder_sync.sh | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/scripts/bootstrap/builder_sync.sh b/scripts/bootstrap/builder_sync.sh index c1db7d7..59138cc 100644 --- a/scripts/bootstrap/builder_sync.sh +++ b/scripts/bootstrap/builder_sync.sh @@ -1,14 +1,42 @@ #! /bin/bash -cd /darklin/gentoo && git pull -cd /darklin/darklin4 && git pull + +# Update DarkLin repo & styx configuration +if [ -d "/darklin/gentoo" ]; then + cd "/darklin/gentoo" && git pull +else + cd "/darlin" && git clone http://darksoft.org/git/csa/devops/darkconf/gentoo.git +fi +if [ -d "/darklin/darklin4" ]; then + cd /darklin/darklin4 && git pull +else + cd "/darklin" && git clone http://darksoft.org/git/csa/devops/darkconf/darklin4.git +fi + +# Update portage emerge --sync && eix-sync emerge -1 portage +# Update extra dist files lftp http://darksoft.org/darklin/ << EOF lcd /var/cache/ mirror -c distfiles bye EOF +# Skip binary packages +rm -f /etc/portage/sets/desktop-apps-bin + +# Adjusting for legacy packets +rm -f /etc/portage/sets/legacy +rm -f /etc/portage/package.keywords/skip.keywords +rm -f /etc/portage/package.keywords/xdeps-perl* +rm -f /etc/portage/package.keywords/xdeps-firefox* +bash /etc/portage/scripts/gen-world-sets + +# update layman +#bash /etc/portage/scripts/bootstrap/layman_reinit.sh + + +# reconfigure kernel if necessary [ -f /usr/src/linux/.config ] || yes "" | make -C /usr/src/linux oldconfig |