dot

packages and services management
Log | Files | Refs | README

commit 5a6c530895779c833d4a161bbd8cbba7e0152131
parent 5f8b8a8c4c4ecf76e74a29184f3971fd048c1cd3
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed, 10 Jan 2018 12:03:56 +0100

starting to add s6 suite

Diffstat:
Mbin/back | 10+++++++---
Apack/execline/build | 11+++++++++++
Apack/execline/git | 1+
Apack/libskarnet/build | 11+++++++++++
Apack/libskarnet/git | 1+
Apack/s6/build | 11+++++++++++
Apack/s6/git | 1+
7 files changed, 43 insertions(+), 3 deletions(-)

diff --git a/bin/back b/bin/back @@ -1,5 +1,5 @@ #!/bin/sh -e -# store data in hash-indexed lz4-compressed backups +# store data in hash-indexed backups BACK="${BACK:-$HOME/back}" @@ -16,7 +16,7 @@ case $1 in -exec grep -F {} "$log" ';' -o \ -exec $sum {} + \ ')' | tee "$BACK/new" | while read -r hash path - do [ -f "$BACK/obj/$hash.lz4" ] || lz4 "$path" "$BACK/obj/$hash.lz4" + do [ -f "$BACK/obj/$hash.lz4" ] || lz4 -q "$path" "$BACK/obj/$hash.lz4" done sort "$BACK/new" -o "$BACK/new" @@ -34,12 +34,16 @@ case $1 in while read -r hash path do mkdir -p "$(dirname "$path")" - lz4 "$BACK/obj/$hash.lz4" "$path" + lz4 -q "$BACK/obj/$hash.lz4" "$path" done < "$BACK/rev/$2" ;; (log) less "$BACK/log" ;; +(rsync) + rsync "$2" "$BACK" + rsync "$BACK" "$2" + ;; (*) echo 'usage: back up' echo ' back to <rev>' diff --git a/pack/execline/build b/pack/execline/build @@ -0,0 +1,11 @@ +#!/bin/sh -e + +case "$(uname)" in (*BSD) make=gmake ;; (Linux) make=make ;; esac + +./configure --prefix="$OPT" \ + --with-sysdeps="$SYSROOT/lib/skalibs/sysdeps/" \ + --with-include="$SYSROOT/include" \ + --with-lib="$SYSROOT/lib" \ + --with-dynlib="$SYSROOT/lib" + +$make install diff --git a/pack/execline/git b/pack/execline/git @@ -0,0 +1 @@ +git://git.skarnet.org/execline diff --git a/pack/libskarnet/build b/pack/libskarnet/build @@ -0,0 +1,11 @@ +#!/bin/sh -e + +case "$(uname)" in (*BSD) make=gmake ;; (Linux) make=make ;; esac + +./configure --prefix="$OPT" \ + --with-sysdeps="$SYSROOT/lib/skalibs/sysdeps/" \ + --with-include="$SYSROOT/include" \ + --with-lib="$SYSROOT/lib" \ + --with-dynlib="$SYSROOT/lib" + +$make install diff --git a/pack/libskarnet/git b/pack/libskarnet/git @@ -0,0 +1 @@ +git://git.skarnet.org/skalibs diff --git a/pack/s6/build b/pack/s6/build @@ -0,0 +1,11 @@ +#!/bin/sh -e + +case "$(uname)" in (*BSD) make=gmake ;; (Linux) make=make ;; esac + +./configure --prefix="$OPT" \ + --with-sysdeps="$SYSROOT/lib/skalibs/sysdeps/" \ + --with-include="$SYSROOT/include" \ + --with-lib="$SYSROOT/lib" \ + --with-dynlib="$SYSROOT/lib" + +$make install diff --git a/pack/s6/git b/pack/s6/git @@ -0,0 +1 @@ +git://git.skarnet.org/s6