forked from kelu124/echomods
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakedoc.sh
executable file
·69 lines (50 loc) · 1.78 KB
/
makedoc.sh
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
54
55
56
57
58
59
60
61
62
63
#/bin/bash
# Creating the docs
#jupyter nbconvert ../../matty/20180310a/20180310a-CalibGain.ipynb --to markdown --output-dir ./gitbook/notebooks/
cd doc/
python createStats.py
cd ../
python makedoc.py
# Cleaning the links to github
cd gitbook
grep -rli '](/bomanz' * | xargs -i@ sed -i 's/](\/bomanz\//](https\:\/\/github.com\/kelu124\/bomanz\/tree\/master\//g' @
grep -rli '](/' * | xargs -i@ sed -i 's/](\//](https\:\/\/github.com\/kelu124\/echomods\/tree\/master\//g' @
cd ..
# Cleaning leftovers from pushing
grep -rli '](/mogaba/' --include "*.md" | xargs -i@ sed -i 's/](\/mogaba\//](\/retired\/mogaba\//g' @
grep -rli '](/oneeye/' --include "*.md" | xargs -i@ sed -i 's/](\/oneeye\//](\/retired\/oneeye\//g' @
grep -rli '](/sleepy/' --include "*.md" | xargs -i@ sed -i 's/](\/sleepy\//](\/retired\/sleepy\//g' @
grep -rli '](/toadkiller/' --include "*.md" | xargs -i@ sed -i 's/](\/toadkiller\//](\/retired\/toadkiller\//g' @
# Committing github pages modifications
cd gh-pages/
./createMD.sh
./makeprez
git add * -v
git commit -m "Commit of generated files on `date +'%Y-%m-%d %H:%M:%S'`";
git push
# Committing gitbook modifications
cd ../gitbook/
git add * -v
git commit -m "Commit of generated files on `date +'%Y-%m-%d %H:%M:%S'`";
git push
cd ../../bomanz/
#git add * -v
#git commit -m "Autopush"
#git push
# Committing echomods modifications
cd ../echomods/
git add * -v
git commit -m "Commit of generated files on `date +'%Y-%m-%d %H:%M:%S'`";
git push
cd ../oup/
#python do.py
#git add * -v
#git commit -m "Commit of generated files on `date +'%Y-%m-%d %H:%M:%S'`";
#git push
## fdsfds
cd ../echomods/
cp matty/news/*.md ../un0rick/gh-pages/_posts #copying blog posts
cd ../un0rick/gh-pages/
git add * -v
git commit -m "Commit of generated files on `date +'%Y-%m-%d %H:%M:%S'`";
git push