summaryrefslogtreecommitdiffstats
path: root/scripts/bootstrap/builder_sync.sh
blob: f3a5017ab5a7f0cd9a472bb10975e2e7f55fb2d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#! /bin/bash


# Update DarkLin repo & styx configuration
cd "/darklin/gentoo" && git pull 
cd "/darklin/darklin4" && git pull

# 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 portage
emerge --sync && eix-sync
emerge -u1 portage

# 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

# Update extra dist files
[ ! -f /usr/bin/lftp ] && emerge -1 lftp

lftp http://darksoft.org/darklin/ << EOF
lcd /var/cache/
mirror -c distfiles
bye
EOF