diff options
author | Tim Keller <tjkeller.xyz> | 2024-11-17 23:39:40 -0600 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2024-11-17 23:39:40 -0600 |
commit | 08f22ad82edbe30606a8145a01ab18f2f6d71b4b (patch) | |
tree | cce5c45c996d81d131ada2f409a3c6d041b5416e /.old/sync/pull | |
parent | 09ada24d4ec23cf24ab136141b354953d1bbc2fa (diff) | |
download | scripts-08f22ad82edbe30606a8145a01ab18f2f6d71b4b.tar.xz scripts-08f22ad82edbe30606a8145a01ab18f2f6d71b4b.zip |
delete .old dir since all is still stored in version control
Diffstat (limited to '.old/sync/pull')
-rwxr-xr-x | .old/sync/pull | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/.old/sync/pull b/.old/sync/pull deleted file mode 100755 index f52ec5e..0000000 --- a/.old/sync/pull +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh - -printusage() { echo "Usage: $0 [-b,--build] [<repo> ...] (repos: all,`echo $repos | tr ' ' ','`)" && exit; } - -repos=$repos"blr dmenu dotconfig scripts st timmywm" #repos=$repos"dotconfig|dwmpatches|scripts|st|timmywm" - -[ -z $1 ] || [ `echo "$@" | tr ' ' '\n' | grep -v -c '\-'` = 0 ] && printusage - -# Colors -BOLD="\033[1m" -NORM="\033[0m" -CYN="\033[0;36m" -RED="\033[0;31m" -GRN="\033[0;32m" -MAG="\033[0;35m" - -printsyncmsg() { echo "$CYN[Pulling repo '$arg'...]$NORM"; } -printsuccess() { echo "$BOLD$GRN[Successfully pulled repo '$arg']$NORM"; } -printerror() { echo "$BOLD$RED[Failed to pull repo '$arg']$NORM"; } - -#change colors -printmakemsg() { echo "$MAG[Building repo '$arg'...]$NORM"; } -printmakesuccess() { echo "$BOLD$GRN[Successfully built repo '$arg']$NORM"; } -printmakeerror() { echo "$BOLD$RED[Failed to build repo '$arg']$NORM"; } - -pullrepo() { - printsyncmsg - cd $1 && git pull --verbose \ - && printsuccess || printerror -} -makerepo() { - if echo "$opts" | grep '\-b'; then - printmakemsg - ${SUDO:-sudo} make clean install \ - && printmakesuccess || printmakeerror - fi -} -makeautoconf() { make autoconfig && echo "$BOLD$GRN[Automatically configured '$repo']$NORM"; } - -pullblr() { pullrepo ~/.local/src/programs/blr; } -pulldmenu() { pullrepo ~/.local/src/programs/dmenu && makeautoconf && makerepo; } -pulldotconfig() { pullrepo ~/.config; } -pullscripts() { pullrepo ~/.local/bin; } -pullst() { pullrepo ~/.local/src/programs/st && makeautoconf && makerepo; } -pulltimmywm() { pullrepo ~/.local/src/programs/timmywm && makeautoconf && makerepo; } - -for arg in "$@"; do - case $arg in - -b|--build) opts="$opts-b" ;; - all) $0 $opts $repos ;; - *) # Would like to use something like $repos) here but cant - for repo in $repos; do - [ "$arg" = "$repo" ] && pull$arg && break - done || printusage - ;; - esac -done |