dot

packages and services management
Log | Files | Refs | README

commit fa4a674ee5a6f17e81a324cdd877933cd5ea7599
parent aabbc2356c49ea5c6e1ad32aead3e1931e7e9343
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 24 Mar 2018 13:08:48 +0100

remove unused scripts

Diffstat:
A.ssh/config | 14++++++++++++++
Mbin/pack | 2+-
Mconfigure | 33++++++++++++++++++++-------------
Depitech | 0
4 files changed, 35 insertions(+), 14 deletions(-)

diff --git a/.ssh/config b/.ssh/config @@ -0,0 +1,14 @@ +AddKeysToAgent yes +IdentityFile /mnt/key/josuah.key + +host git.nixers.net + IdentityFile /mnt/key/git.nixers.net.key + +host repo.or.cz + IdentityFile /mnt/key/repo.or.cz.key + +host github.com + IdentityFile /mnt/key/github.com.key + +host git.epitech.eu + IdentityFile /mnt/key/epitech.eu.key diff --git a/bin/pack b/bin/pack @@ -66,6 +66,6 @@ case "$1" in (*) echo "usage: pack tar | git | get | build | add | del <package>" echo "" - COLUMNS=80 ls "$HOME/etc/pack" + COLUMNS=80 ls "$PACK" ;; esac diff --git a/configure b/configure @@ -1,23 +1,30 @@ #!/bin/sh -e cd "$0/.." -. ./.profile - +. ./.profile # for $SVDIR mkdir -p "$HOME/var" "$SVDIR" "$HOME/.config/enchive" -# symlink ~/etc/* into ~/.config/* -find * -path './runit/*' -prune \ - -o -type d -exec sh -c 'mkdir -p "$HOME/.config/$0"' {} \; \ - -o -type f -exec sh -c 'ln -sf "$PWD/$0" "$HOME/.config/$0"' {} \; +mkdir='mkdir -p "$0/$1"' +symln='ln -sf "$PWD/$1" "$0/$1"' -# symlink ~/etc/.* into ~/.* -find .* -name .git -prune -o -name . -prune -o -name .. -prune \ - -o -type d -exec sh -c 'mkdir -p "$HOME/$0"' {} \; \ - -o -type f -exec sh -c 'ln -sf "$PWD/$0" "$HOME/$0"' {} \; \ - -o -type l -exec sh -c 'ln -sf "$PWD/$0" "$HOME/$0"' {} \; +# symlink ./* into ~/.config/* +# symlink ./.* into ~/* +find . \ + -path './runit/*' -prune -o \ + -name '.git' -prune -o \ + -path './.' -prune -o \ + -path './..' -prune -o \ + -path './.*' -a '(' \ + -type d -exec sh -c "$mkdir" "$HOME/.config" {} ';' -o \ + -type f -exec sh -c "$symln" "$HOME/.config" {} ';' \ + ')' -o '(' \ + -type d -exec sh -c "$mkdir" "$HOME" {} ';' -o \ + -type f -exec sh -c "$symln" "$HOME" {} ';' -o \ + -type l -exec sh -c "$symln" "$HOME" {} ';' \ + ')' find -L "$HOME" -type l -exec rm {} + -ln -s /mnt/key/enchive.pub "$HOME/.config/enchive/enchive.pub" -ln -s /mnt/key/enchive.sec "$HOME/.config/enchive/enchive.sec" +ln -fs /mnt/key/enchive.pub "$HOME/.config/enchive/enchive.pub" +ln -fs /mnt/key/enchive.sec "$HOME/.config/enchive/enchive.sec" diff --git a/epitech b/epitech