summaryrefslogtreecommitdiffstats
path: root/arch-up
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-09-07 16:18:25 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-09-07 16:18:25 +0200
commit8ff1987ecc74e2edc8361a9985c590ff62ce0b30 (patch)
treef2b36be5fa0330bb30fd21229a5e5b352abd9ea7 /arch-up
parentca0c9e9822913ec5b0900cf379922a86fe88f3e1 (diff)
downloadbin-8ff1987ecc74e2edc8361a9985c590ff62ce0b30.zip
bin-8ff1987ecc74e2edc8361a9985c590ff62ce0b30.tar.gz
arch-up: becomes a small scripts collection
Diffstat (limited to 'arch-up')
-rwxr-xr-xarch-up26
1 files 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
-