summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2009-12-06 18:58:50 +0100
committerDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2009-12-06 18:58:50 +0100
commit370f328b6043fd1288887f8d53d7539cf58b40c5 (patch)
tree00d95559ef12013b03ac2a9372e0e15b56f8b34f /tinderbox-restart.sh
parentAdd the GCC asneeded updater. (diff)
downloadflameeyes-tinderbox-370f328b6043fd1288887f8d53d7539cf58b40c5.tar.gz
flameeyes-tinderbox-370f328b6043fd1288887f8d53d7539cf58b40c5.tar.bz2
flameeyes-tinderbox-370f328b6043fd1288887f8d53d7539cf58b40c5.zip
Add my (rough) emerge wrapper and restarter tasks scripts.
Diffstat (limited to 'tinderbox-restart.sh')
-rwxr-xr-xtinderbox-restart.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/tinderbox-restart.sh b/tinderbox-restart.sh
new file mode 100755
index 0000000..6791103
--- /dev/null
+++ b/tinderbox-restart.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+echo "#syncing anew upon request" | bti
+
+emerge --sync
+
+echo > /etc/portage/package.mask/currentrun
+
+./unavailable_installed.py | xargs -r emerge -C
+
+sed -i -e '$r /var/log/emerge.log' /var/log/emerge-total.log
+rm -f /var/log/emerge.log
+
+emerge -1 --selective gcc
+if fgrep -q '>>> emerge' /var/log/emerge.log; then
+ ./update-gcc-asneeded.sh
+fi
+
+emerge -1 --selective glibc portage bti screen avahi nfs-utils gentoolkit java-dep-check portage-utils
+
+sed -i -e '$r /var/log/emerge.log' /var/log/emerge-total.log
+rm -f /var/log/emerge.log