From 8ff1987ecc74e2edc8361a9985c590ff62ce0b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 7 Sep 2012 16:18:25 +0200 Subject: arch-up: becomes a small scripts collection --- arch-up | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/arch-up b/arch-up index e3de9e5..f3e85e3 100755 --- a/arch-up +++ b/arch-up @@ -3,12 +3,6 @@ RESET="\033[0m" RED="\033[0;31m" CYAN="\033[0;36m" -test $# -gt 0 || exit 1 - -PASSWD=$1 -shift -ARGS=$@ - function run() { echo -e "$CYAN $1 $RESET" && $1 } @@ -20,14 +14,14 @@ function sudo_run() { function update_gem() { run "/usr/bin/gem update" run "/usr/bin/gem clean" - run "/opt/ruby1.8/bin/gem update" - run "/opt/ruby1.8/bin/gem clean" + # run "/opt/ruby1.8/bin/gem update" + # run "/opt/ruby1.8/bin/gem clean" } -function update_pacman() { +function update_pkgs() { sudo_run "pacman -Syu" sudo_run "pacman -Scc --noconfirm" - run "du -sh /var/cache/pacman/pkg" + sudo_run "rm /var/cache/pacman/pkg/*" run "aurget -Syu" } @@ -64,17 +58,7 @@ function update_e17() { function check_etc_git() { [ -e /etc/.git ] || return run "cd /etc" - sudo_run "git status" sudo_run "find . -name *.pacnew" + sudo_run "git status" } -update_pacman -update_gem -update_makepkg "libxkbcommon-git" "libxkbcommon" -update_makepkg "pixman-git" "pixman" -update_makepkg "cairo-gl-git" "cairo" -update_makepkg "wayland-git" "wayland" -update_makepkg "weston-git" "weston" -update_e17 -check_etc_git - -- cgit v1.1-2-g2b99