Add raw directory for submodules, and add ALE
This commit is contained in:
parent
25b8eacff3
commit
0fa3e363b1
3 changed files with 17 additions and 0 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "raw/.vim/pack/git-plugins/start/ale"]
|
||||
path = raw/.vim/pack/git-plugins/start/ale
|
||||
url = https://github.com/w0rp/ale.git
|
13
install.py
13
install.py
|
@ -2,6 +2,7 @@
|
|||
|
||||
import argparse
|
||||
import os
|
||||
import shutil
|
||||
import socket
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
@ -36,6 +37,7 @@ def main():
|
|||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
raw_dir = args.dotfiles / 'raw'
|
||||
templates_dir = args.dotfiles / 'templates'
|
||||
include_dir = args.dotfiles / 'include'
|
||||
host_filename = args.dotfiles / 'hosts' / '{}.toml'.format(args.hostname)
|
||||
|
@ -53,9 +55,20 @@ def main():
|
|||
],
|
||||
)
|
||||
|
||||
for raw_path in raw_dir.glob('**/*'):
|
||||
if not raw_path.is_file():
|
||||
continue
|
||||
rel_path = raw_path.relative_to(raw_dir)
|
||||
output_path = args.home / rel_path
|
||||
print(rel_path)
|
||||
output_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copy(raw_path, output_path)
|
||||
|
||||
for template_path in templates_dir.glob('**/*'):
|
||||
if not template_path.is_file():
|
||||
continue
|
||||
rel_path = template_path.relative_to(templates_dir)
|
||||
print(rel_path)
|
||||
template = mako.template.Template(
|
||||
filename=str(template_path),
|
||||
strict_undefined=True,
|
||||
|
|
1
raw/.vim/pack/git-plugins/start/ale
Submodule
1
raw/.vim/pack/git-plugins/start/ale
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit d7395906ba0f9aca2fb1a6c32df236bfd4ab32f6
|
Loading…
Add table
Reference in a new issue