dot

packages and services management
Log | Files | Refs | README

commit 668d231cb901536917062aceaf9d6d891cf28879
parent 549bf36734169a403d20d6b1d819bb5762a1ac83
Author: josuah <mail@josuah.net>
Date:   Sun,  1 Jan 2017 04:43:36 +0100

Completed version

Diffstat:
M.local/bin/version | 20++++++++++++++++++--
M.xinitrc | 4+---
2 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/.local/bin/version b/.local/bin/version @@ -102,10 +102,26 @@ difftree() } +# 1: tree to check version + revision() { new - # TODO: apply difftree to current tree + + difftree "$(sed '$qd' .version/history)" "$1" | sort -r | + while read -r f hash path + do + case "$f" in + ( + ) + mkdir -p "${path%/*}" + cp ".version/obj/$hash" "$path" + chmod +w "$path" + ;; + ( - ) + rm "${path:?error in diff}" + ;; + esac + done } @@ -167,7 +183,7 @@ main() ( r | revision ) [ $# -ne 2 ] && usage r [ -f ".version/rev/$2" ] || die "no revision $2" - revision + revision "$2" ;; ( m | merge ) [ $# -lt 2 ] && [ $# -gt 3 ] && usage m diff --git a/.xinitrc b/.xinitrc @@ -3,12 +3,10 @@ setxkbmap -layout us -option compose:ralt -variant dvorak while xsetroot -name "$(status)" -do - sleep 5 +do sleep 5 done & pulseaudio & - st -f monospace:pixelsize=14 & exec dwm