summaryrefslogtreecommitdiffstats
path: root/root/posodobi.sh
diff options
context:
space:
mode:
Diffstat (limited to 'root/posodobi.sh')
-rwxr-xr-xroot/posodobi.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/root/posodobi.sh b/root/posodobi.sh
new file mode 100755
index 0000000..d215688
--- /dev/null
+++ b/root/posodobi.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -e
+f=
+grep "no-sync" <<<"$@" || emaint sync --auto
+grep "no-ask" <<<"$@" || f=--ask
+emerge --verbose --update $f --newuse --changed-use --backtrack 30 --deep --with-bdeps=y @world
+emerge @preserved-rebuild
+emerge --depclean