This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/colors/gen/gen.bash

33 lines
1.3 KiB
Bash
Raw Normal View History

2016-01-06 11:55:04 -06:00
#!/usr/bin/env bash
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../.." && pwd)
source "$DIR/variables.bash"
mkdir -p "$DOTFILES_PATH/colors/gen/vendor"
B16_DIR="$DOTFILES_PATH/colors/gen/vendor/base16-builder"
2016-07-14 15:22:19 -05:00
COLORS_PATH="$B16_DIR/output"
2016-01-06 11:55:04 -06:00
if [ -d "$B16_DIR" ]; then
echo "Skipping repo pull down..."
2016-07-14 15:22:19 -05:00
rm -rf "$COLORS_PATH"
mkdir -p "$COLORS_PATH"
2016-01-06 11:55:04 -06:00
else
git clone https://github.com/lytedev/base16-builder.git "$DOTFILES_PATH/colors/gen/vendor/base16-builder"
fi
2016-07-14 15:22:19 -05:00
"$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t vim -s "$DOTFILES_PATH/colors/gen/schemes/donokai.yml"
"$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t xresources -s "$DOTFILES_PATH/colors/gen/schemes/donokai.yml"
"$DOTFILES_PATH/colors/gen/vendor/base16-builder/base16" -t shell -s "$DOTFILES_PATH/colors/gen/schemes/donokai.yml"
2016-01-06 11:55:04 -06:00
COLORS_PATH=$DOTFILES_PATH/colors/gen/vendor/base16-builder/output
2016-07-14 15:22:19 -05:00
rm -f "$DOTFILES_PATH/colors/xresources"
rm -f "$DOTFILES_PATH/colors/vim"
rm -f "$DOTFILES_PATH/colors/shell"
2016-01-06 11:55:04 -06:00
cp "$COLORS_PATH/xresources/base16-donokai.dark.xresources" "$DOTFILES_PATH/colors/xresources"
cp "$COLORS_PATH/vim/base16-donokai.vim" "$DOTFILES_PATH/colors/vim"
cp "$COLORS_PATH/shell/base16-donokai.dark.sh" "$DOTFILES_PATH/colors/shell"
2016-07-14 15:22:19 -05:00
chmod +x "$DOTFILES_PATH/colors/shell"
2016-01-06 11:55:04 -06:00