diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-11-07 19:43:08 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-11-07 19:43:08 -0500 |
| commit | 74ef0d8bdb6d622f1330eec966fd3db65e3d491c (patch) | |
| tree | b90aeaf72f65734157e4d8a3a1ab06f1d17671f6 | |
| parent | f99ff078df06ef26f9a92e6a01d87f1c79ae342f (diff) | |
| download | vim-cfg-74ef0d8bdb6d622f1330eec966fd3db65e3d491c.tar.gz vim-cfg-74ef0d8bdb6d622f1330eec966fd3db65e3d491c.tar.xz | |
Remove old setup scripts
| -rwxr-xr-x | gen-setup.sh | 60 | ||||
| -rwxr-xr-x | setup.sh | 60 |
2 files changed, 0 insertions, 120 deletions
diff --git a/gen-setup.sh b/gen-setup.sh deleted file mode 100755 index 23eec5b..0000000 --- a/gen-setup.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh - -columate() { - _str="$1" - - _max_length=48 - _length=$( printf "%s" $_str | wc -c) - # Divide by 8, because that's the standard tabstop - _tab_num=$(echo "($_max_length-$_length)/8" | bc -l ) - _tabs="" - - # Create the tabs - for _tab in $( seq $_tab_num ) ; do - _tabs="$(printf "%s\t" $_tabs)" - done - - # "Return" the tabs - printf "%s" $_tabs -} - -REPOS="$(find . -iname .git -type d | tail -n+2 | sed -e's/\/\.git$//' -e's_./__')" - -WD="$(pwd)" - -IFS=' -' - -echo '#!/bin/sh - -WD="$(pwd)" - -clone() { - printf "\033[0mWorking dir: \033[1;34m%s\033[0;33m\n" $DIR - if [ -d "$DIR" ] ; then - cd $DIR - git pull --ff-only origin master - elif ! [ -d "$DIR" ] ; then - mkdir -p "$DIR" - cd "$DIR" - git clone --depth=1 "$URL" . - fi - cd $WD - printf "\033[0m" -}' > setup.sh - -for _repo in $REPOS; do - cd "$_repo" - # I've probably made dangerous assumptions here, but whatever. - URL="$(git remote --verbose| awk '{print $2}' | sort | uniq | head -n 1)" - cd "$WD" - - _tabs="$(columate $_repo)" - - printf 'Added: \033[1;33m%s\033[0m%sURL: \033[1;34m%s\033[0m\n' \ - $_repo $_tabs $URL - printf 'DIR="%s"\nURL="%s"\nclone\n' $_repo $URL >> setup.sh -done - - -chmod +x setup.sh diff --git a/setup.sh b/setup.sh deleted file mode 100755 index 4d554a0..0000000 --- a/setup.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh - -WD="$(pwd)" - -clone() { - printf "[0mWorking dir: [1;34m%s[0;33m\n" "$DIR" - git submodule add "$URL" "$DIR" - printf "[0m" -} -DIR="pack/plugins/start/vim-go" -URL="https://github.com/fatih/vim-go.git" -clone -DIR="pack/plugins/start/ag.vim" -URL="https://github.com/rking/ag.vim.git" -clone -DIR="pack/plugins/start/ctrlp.vim" -URL="https://github.com/ctrlpvim/ctrlp.vim" -clone -DIR="pack/plugins/start/emmet-vim" -URL="https://github.com/mattn/emmet-vim.git" -clone -DIR="pack/plugins/start/gundo" -URL="https://github.com/sjl/gundo.vim" -clone -DIR="pack/plugins/start/nerdtree" -URL="https://github.com/scrooloose/nerdtree" -clone -DIR="pack/plugins/start/vim-airline" -URL="https://github.com/vim-airline/vim-airline.git" -clone -DIR="pack/plugins/start/vim-airline-themes" -URL="https://github.com/vim-airline/vim-airline-themes/" -clone -DIR="pack/plugins/start/dracula" -URL="https://github.com/dracula/vim.git" -clone -DIR="pack/plugins/start/l9" -URL="https://git.riedstra.us/vim/vim-l9.git" -clone -DIR="pack/plugins/start/vim-autocomplpop" -URL="https://git.riedstra.us/vim/vim-autocomplpop.git" -clone -DIR="pack/themes/start/mitch" -URL="https://git.riedstra.us/vim/mitch.git" -clone -DIR="pack/themes/start/solarized" -URL="https://github.com/altercation/vim-colors-solarized" -clone -DIR="pack/themes/start/orbital" -URL="https://github.com/fcpg/vim-orbital" -clone -DIR="pack/themes/start/monotone" -URL="https://github.com/Lokaltog/vim-monotone" -clone -DIR="pack/themes/start/gruvbox" -URL="https://github.com/morhetz/gruvbox" -clone -DIR="pack/themes/start/base16-black-metal" -URL="https://github.com/metalelf0/base16-black-metal-scheme.git" -clone |
