summaryrefslogtreecommitdiff
path: root/scripts/update-world
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/update-world')
-rw-r--r--scripts/update-world8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/update-world b/scripts/update-world
new file mode 100644
index 0000000..78b6117
--- /dev/null
+++ b/scripts/update-world
@@ -0,0 +1,8 @@
+MAILTO=dan@randomdan.homeip.net
+LOG=/tmp/update_all
+emerge -uDN world > ${LOG} 2>&1
+if [ -s ${LOG} ] ; then
+ mailx -s ${0} ${MAILTO} < ${LOG}
+fi
+rm ${LOG}
+