dot

packages and services management
Log | Files | Refs | README

commit fb4e7c773537e136d7dd63f57fc0f5700705e94d
parent 464b0b6ee5017fe260e3a9a4f29aedf4e3d735d2
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu, 29 Mar 2018 10:58:26 +0200

fix configure script again (shell globs syntax quirks)

Diffstat:
Mbin/edit | 2+-
Mbin/mfilter | 2+-
Mconfigure | 8+++-----
3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/bin/edit b/bin/edit @@ -8,4 +8,4 @@ cd "$(dirname "$1")" -exec vi "$@" +exec vi "$1" diff --git a/bin/mfilter b/bin/mfilter @@ -15,7 +15,7 @@ do mkdir -p "$HOME/var/mail/$dir/cur" \ "$HOME/var/mail/$dir/new" \ "$HOME/var/mail/$dir/tmp" - printf '%-35s' "$dir" 1>&2 + printf '%-35s ' "$dir" 1>&2 mpick -t "$header ~~~ $glob" < "$MBLAZE/seq.mfilter" | while IFS='' read -r file do diff --git a/configure b/configure @@ -8,7 +8,7 @@ mkdir -p "$HOME/var" "$SVDIR" "$HOME/.config/enchive" mkdir='mkdir -p "$0/$1";:' symln='ln -sf "$PWD/$1" "$0/$1";:' -# symlink ./[!.]* into ~/.config/* +# symlink ./* into ~/.config/* find * \ -path './README' -prune -o \ -path './configure' -prune -o \ @@ -17,11 +17,9 @@ find * \ -type d -exec sh -c "$mkdir" "$HOME/.config" {} \; -o \ -type f -exec sh -c "$symln" "$HOME/.config" {} \; -# symlink ./.* into ~/.* -find .* \ +# symlink dotfiles into ~/.* +find .[!.]* \ -name '.git' -prune -o \ - -path './.' -prune -o \ - -path './..' -prune -o \ -type d -exec sh -c "$mkdir" "$HOME" {} \; -o \ -type f -exec sh -c "$symln" "$HOME" {} \; -o \ -type l -exec sh -c "$symln" "$HOME" {} \;