File tree Expand file tree Collapse file tree 5 files changed +78
-0
lines changed Expand file tree Collapse file tree 5 files changed +78
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # # Assumptions
4
+ # - NuPIC is checked out somewhere within reach cloned from
5
+ # [email protected] :numenta/nupic.git as `origin`.
6
+ # - $NUPIC points to the location of this checkout.
7
+ # - A local `gh-pages` branch exists, tracking the remote 'gh-pages' branch.
8
+
9
+ echo
10
+ echo " Building NuPIC API docs from $NUPIC "
11
+ echo
12
+
13
+ if [ -z " $NUPIC " ]; then
14
+ echo " In order for this script to run properly, you must have the "
15
+ echo " \$ NUPIC environment variable set to the NuPIC checkout."
16
+ exit 1
17
+ fi
18
+
19
+ cwd=` pwd`
20
+ cd $NUPIC
21
+
22
+ echo " Checking out NuPIC master branch for doxygen build..."
23
+ git checkout master
24
+ git pull origin master
25
+
26
+ echo " Running Doxygen..."
27
+ doxygen
28
+
29
+ echo " Checking out NuPIC gh-pages branch for documentation push..."
30
+ git checkout gh-pages
31
+ # pull latest changes
32
+ git fetch origin
33
+ git merge origin/gh-pages --no-edit
34
+ # move html directory into right place
35
+ rm -rf docs
36
+ mv html docs
37
+ # add new docs
38
+ git add docs
39
+ # commit new docs
40
+ git commit -m " NuPIC Doxygen automated doc build."
41
+ # push new docs
42
+ git push origin gh-pages
43
+
44
+ echo " Switching back to NuPIC master branch..."
45
+ git checkout master
46
+
47
+ echo
48
+ echo Done.
49
+
50
+ cd $cwd
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ script_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
4
+
5
+ $script_dir /stop.sh
6
+ $script_dir /start.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ script_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
4
+ cwd=` pwd`
5
+ tools_server=" ${script_dir} /../program.js"
6
+
7
+ # Forever is a node.js tool used to keep programs running.
8
+
9
+ echo
10
+ echo " Starting: ${tools_server} "
11
+ forever start $tools_server
12
+
13
+ echo
14
+ forever list
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Forever is a node.js tool used to keep programs running.
4
+ forever list
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Forever is a node.js tool used to keep programs running.
4
+ forever stopall
You can’t perform that action at this time.
0 commit comments