dot

packages and services management
Log | Files | Refs | README

commit 0e4969ad811d539e05c36d19459004c48126f43d
parent 111f33c61faa7ae58dcf3513539dc47834a7ed6d
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Tue, 16 May 2017 15:06:45 +0200

simpler home directory scheme

Diffstat:
M.profile | 2+-
Mbin/build | 6+++++-
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/.profile b/.profile @@ -112,7 +112,7 @@ alias myip='curl icanhazip.com' alias ix='curl -F "f:1=<-" ix.io' alias w1r3='curl -F upload=@- https://w1r3.net' alias wttr='wget -qO- wttr.in' -alias lines='find . -name "*.[ch]" | xargs wc -l | sort -g' +alias lines='find . -name "*.[ch]" | xargs wc -l | sort -n' alias count='echo "$(( $(git diff | grep "^+" | wc -l) - $(git diff | grep "^-" | wc -l) diff --git a/bin/build b/bin/build @@ -25,7 +25,11 @@ compile() PREFIX="$OPT/$1" export PREFIX - cd "$PREFIX" && mkdir -p bin doc etc include lib libexec share man + cd "$PREFIX" || exit 1 + mkdir -p bin doc etc include lib libexec share man + ln -s bin sbin + ln -s ../man share/man + ln -s . usr cd "$SRC/$1" || exit 1 if [ -f "$ETC/build/$1/build" ]