-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (42 loc) · 2.19 KB
/
Copy pathMakefile
File metadata and controls
53 lines (42 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FILES=files/
REPOS=repos/oh-my-zsh repos/dircolors repos/tmux-powerline
DOTFILES=tmux.conf vimrc hgrc gitconfig pydistutils.cfg xmodmap Xresources \
bash_logout bashrc gvimrc mplayer xinitrc xmobarrc xsession zshrc \
gtkrc-2.0 oh-my-zsh tmux-powerlinerc vimperatorrc
install: $(REPOS) link
@echo "You may run 'make fonts' if you need."
link:
find ${FILES} -type d | while read f; do mkdir -p ~/.$${f#${FILES}}; done
find ${FILES} -type f | while read f; do ln -fsn ~/dotfiles/$$f ~/.$${f#files/}; done
for f in repos/*; do ln -fsn ~/dotfiles/$$f ~/.$${f#repos/}; done
linktest:
@find ${FILES} -type d | while read f; do test ! -d ~/.$${f#${FILES}} && echo "Missing dir: ~/.$${f#${FILES}}"; done || true
@find ${FILES} -type f | while read f; do test ! -h ~/.$${f#files/} && echo "Missing link: ~/.$${f#files/}"; done || true
@for f in repos/*; do test ! -h ~/.$${f#repos/} && echo "Missing repo: ~/.$${f#repos/}"; done || true
repos/oh-my-zsh:
git clone git://github.com/robbyrussell/oh-my-zsh.git repos/oh-my-zsh
repos/dircolors:
git clone https://github.com/seebi/dircolors-solarized repos/dircolors
repos/tmux-powerline:
test -d repos/tmux-powerline || git clone https://github.com/erikw/tmux-powerline repos/tmux-powerline
cp mytmux-theme.sh repos/tmux-powerline/themes/
repos/battery-widget:
git clone git@github.com:deficient/battery-widget.git repos/battery-widget
# TODO link to ~/.config/awesome/battery-widget
fonts:
mkdir -p ~/.fonts
cd ~/.fonts && wget -nc https://gist.github.com/qrush/1595572/raw/51bdd743cc1cc551c49457fe1503061b9404183f/Inconsolata-dz-Powerline.otf
cd ~/.fonts && test -d powerline-fonts || git clone https://github.com/Lokaltog/powerline-fonts
fc-cache -vf ~/.fonts
echo "Choose Inconsolaa-dz for Powerline in gnome-terminal preferenes"
home: params.home
. ./params.home; for file in *.tmpl; do \
sed -e "s/__USERNAME__/$${USERNAME:-$$USER}/" \
-e "s/__EMAIL__/$${EMAIL:-$$USER@$$(hostname)}/" $$file > ${FILES}$${file%%.tmpl}; \
done
work: params.work
. ./params.work; for file in *.tmpl; do \
sed -e "s/__USERNAME__/$${USERNAME:-$$USER}/" \
-e "s/__EMAIL__/$${EMAIL:-$$USER@$$(hostname)}/" $$file > ${FILES}$${file%%.tmpl}; \
done
.PHONY: fonts repos/tmux-powerline