dot

packages and services management
Log | Files | Refs | README

commit 01c59ef1a7cbd2c683cfe452d3741717bbbee920
parent 866081a12f09ad7558956ce51a003579044220c7
Author: josuah <mail@josuah.net>
Date:   Mon, 10 Oct 2016 23:46:08 -0400

Fixed build and link script

Diffstat:
MSCRIPTS/build.sh | 7+++++--
MSCRIPTS/link.sh | 1-
Rtmux/tmux.conf -> tmux/.tmux.conf | 0
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/SCRIPTS/build.sh b/SCRIPTS/build.sh @@ -16,7 +16,8 @@ help() { printf '%s\n' " USAGE - [d|download] [i|install] [r|remove] PACKAGES + [-d|--download] [-i|--install] [-r|--remove] [-u|--update] PACKAGES + [-l|--link] PACKAGES" find "$CONFIG/BUILD" -type f | while read file @@ -130,6 +131,8 @@ build() mkdir -p "$PROGRAMS" "$PREFIX" +[ $# -eq 1 -a \( "$1" = '-l' -o "$1" != '--link' \) ] && index '' && exit + [ $# -lt 2 ] && help [ ! -f "$CONFIG/BUILD/$2" ] && error "$2 has no build script" @@ -141,7 +144,7 @@ case "$1" in download "$2" "$tar" index "$2" ;; --i | --compile ) +-i | --install ) [ ! -d "$PROGRAMS/$name/src" ] && download "$2" "$tar" compile "$2" index "$2" diff --git a/SCRIPTS/link.sh b/SCRIPTS/link.sh @@ -10,7 +10,6 @@ find "$CONFIG" -type f -path '*/.*' ! -path "*/.git/*" | while read path do destination="$HOME/${path#$CONFIG/*/}" - printf '%s\n' "$destination" mkdir -p "${destination%/*}" ln -sf "$path" "$destination" done diff --git a/tmux/tmux.conf b/tmux/.tmux.conf