dot

packages and services management
Log | Files | Refs | README

commit 0d07ed3cbc30b81cf4ca93d825a1808d454d65b7
parent 8da8cc92df33dd53f8b149e40edd89adb7999443
Author: josuah <mail@josuah.net>
Date:   Mon, 10 Oct 2016 02:13:23 -0400

Much improved the build.sh symlink link creation

Diffstat:
Mbuild.sh | 36++++++++++++++++++++----------------
Mbuild/libevent.sh | 2+-
Mxorg/xinitrc | 10+++++-----
3 files changed, 26 insertions(+), 22 deletions(-)

diff --git a/build.sh b/build.sh @@ -48,7 +48,7 @@ PACKAGES" printf '\t%-14s ' "$name" sed '1 {s/^# //; q}' "$file" - done + done | sort exit 0 } @@ -113,6 +113,20 @@ remove() rm -rf "$PROGRAMS/$name" } +index() +{ + local name="$1" + + info "Updating index in $PREFIX" + + find "$PROGRAMS/$name" -mindepth 2 -type f ! -path "*/src/*" \ + | while read path + do + mkdir -p "$(dirname "$PREFIX/${path#$PROGRAMS/*/}")" + ln -sf "$path" "$PREFIX/${path#$PROGRAMS/*/}" + done +} + # ALGORYTHM #------------------------------------------------------------------------------- @@ -155,22 +169,12 @@ do . "$CONFIG/build/$1.sh" # Specific build script case "$opt" in - d ) download "$1" "$tar" ;; - i ) compile "$1" "$tar" ;; - r ) remove "$1" ;; + d ) download "$1" "$tar"; index "$1" ;; + i ) compile "$1" "$tar"; index "$1" ;; + r ) remove "$1" ;; * ) error "unknown option: $opt"; help ;; esac done -index() -{ - info "Updating index in $PREFIX. This may take a few seconds..." - - find "$PREFIX" -type l -delete; - - find "$PROGRAMS" -mindepth 2 -type f ! -path "*/src/*" | while read path - do - mkdir -p "$(dirname "$PREFIX/${path#$PROGRAMS/*/}")" - ln -sf "$path" "$PREFIX/${path#$PROGRAMS/*/}" - done -} +# Remove broken links from the index +find -L ~/.local -type l -exec rm {} \; diff --git a/build/libevent.sh b/build/libevent.sh @@ -1,2 +1,2 @@ # Event-driven callback library used by tmux -tar=http://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz +tar=https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz diff --git a/xorg/xinitrc b/xorg/xinitrc @@ -6,11 +6,11 @@ while true do xsetroot -name "$(date +'%y-%m-%d %H:%M')" sleep 20 -done & +done & -nm-applet & -xfce4-power-manager & -feh --bg-center ~/Images/Interstellar.png -#compton & +nm-applet & +xfce4-power-manager & +#feh --bg-center ~/Images/Interstellar.png +#compton & exec dwm