dot

packages and services management
Log | Files | Refs | README

commit 732ee9a423a6723a0b10c2f463652e9723eef7c7
parent b337b72dfa293dc9c40a67ed2559e719d2bc496f
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Sun,  6 Aug 2017 02:17:25 +0200

multiple small fixes

Diffstat:
Mcgo/build | 3++-
Mpkg/bin/pkg-configure | 12+++++++++---
Mshell/bin/fun-dump | 2+-
3 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/cgo/build b/cgo/build @@ -1,2 +1,3 @@ make && make PREFIX="$PREFIX" install -cp cgo.1 "$PREFIX/man" +mkdir -p "$PREFIX/share/man/man1" +cp cgo.1 "$PREFIX/share/man/man1" diff --git a/pkg/bin/pkg-configure b/pkg/bin/pkg-configure @@ -1,7 +1,13 @@ +ROOT="${ROOT:-$HOME}" +PKG="${PKG:-$ROOT/pkg}" +ETC="${ETC:-$ROOT/etc}" + find "$PKG" -path "$PKG/*/.*" | while IFS='' read -r path do - [ -d "$path" ] && mkdir -p "$HOME/${path#$PKG/*/}" - [ -f "$path" ] && ln -sf "$path" "$HOME/${path#$PKG/*/}" + [ -d "$path" ] && mkdir -p "$ROOT/${path#$PKG/*/}" + [ -f "$path" ] && ln -sf "$path" "$ROOT/${path#$PKG/*/}" done -find -L "$HOME" -type l -exec rm {} + +find -L "$ROOT" -type l -exec rm {} + + +cat "$PKG"/*/cron > "$ETC/crontab" diff --git a/shell/bin/fun-dump b/shell/bin/fun-dump @@ -1,4 +1,4 @@ -hexdump -C /dev/random | awk ' +hexdump -C /dev/urandom | awk ' /eb/ { printf("\033[1;32m");