mirror of https://github.com/balkian/dotfiles.git
Makefile!
parent
37837558b1
commit
0c3fc88325
@ -1 +0,0 @@
|
|||||||
vim/Session.vim
|
|
@ -0,0 +1,15 @@
|
|||||||
|
########## Variables
|
||||||
|
|
||||||
|
# change to the dotfiles directory
|
||||||
|
|
||||||
|
stow: submodules
|
||||||
|
find . -maxdepth 0 -type d | xargs stow -v
|
||||||
|
|
||||||
|
submodules:
|
||||||
|
git submodule update --init --recursive
|
||||||
|
|
||||||
|
docker: Dockerfile
|
||||||
|
git clone . /tmp/dotfiles
|
||||||
|
docker build -t balkian/devmachine /tmp/dotfiles
|
||||||
|
|
||||||
|
.PHONY: stow submodules docker
|
@ -1,24 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
############################
|
|
||||||
# .make.sh
|
|
||||||
# This script creates symlinks from the home directory to any desired dotfiles in ~/dotfiles
|
|
||||||
############################
|
|
||||||
|
|
||||||
########## Variables
|
|
||||||
|
|
||||||
# change to the dotfiles directory
|
|
||||||
cd `dirname $0`
|
|
||||||
|
|
||||||
########## Don't forget the submodules
|
|
||||||
git submodule init
|
|
||||||
git submodule update --recursive
|
|
||||||
|
|
||||||
olddir=~/dotfiles$(date +%Y-%m-%d_%H:%M:%S) # old dotfiles backup directory
|
|
||||||
files=$(ls -1 --ignore="not_dots" --ignore="README.md" --ignore="make.sh" --ignore="Docker" $PWD) # list of files/folders to symlink in homedir
|
|
||||||
|
|
||||||
##########
|
|
||||||
|
|
||||||
# create dotfiles_old in homedir
|
|
||||||
for file in $files; do
|
|
||||||
stow -v $file
|
|
||||||
done
|
|
Loading…
Reference in New Issue