Commit | Line | Data |
---|---|---|
f87ff0f5 | 1 | #!/bin/sh |
f09ffee7 | 2 | # Script for devs |
f87ff0f5 BA |
3 | |
4 | #initialize submodules, set-up .git/config and .gitattributes, and pre-push hook | |
5 | git submodule init && git submodule update --merge | |
041e2ecf | 6 | |
7a56cc18 BA |
7 | #filter for git-fat |
8 | printf \ | |
9 | '*.pdf filter=fat | |
10 | *.tar.xz filter=fat | |
11 | *.png filter=fat | |
12 | *.jpg filter=fat | |
13 | *.ps filter=fat\n' > .gitattributes | |
14 | ||
f87ff0f5 BA |
15 | #filter for Jupyter |
16 | python .nbstripout/nbstripout.py --install --attributes .gitattributes | |
041e2ecf | 17 | |
7a56cc18 BA |
18 | #pre-commit and pre-push hooks: indentation, git fat push, submodules update |
19 | cp hooks/* .git/hooks/ | |
041e2ecf | 20 | |
7a56cc18 BA |
21 | #install formatR |
22 | echo 'if (! "formatR" %in% rownames(installed.packages())) | |
23 | install.packages("formatR",repos="https://cloud.r-project.org")' | R --slave | |
041e2ecf | 24 | |
f87ff0f5 BA |
25 | #.gitfat file with remote on gitfat@auder.net |
26 | printf '[rsync]\nremote = gitfat@auder.net:~/files/valse\n' > .gitfat | |
041e2ecf | 27 | |
f09ffee7 | 28 | #Now run git-fat init :) |