Debian Codegraph @

update-gh-pages.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 #
3 # Copyright 2016 The Fabulous Authors. All rights reserved.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 [[ "$(basename "$(pwd)")" == "fabulous" ]] || { echoscip-shell system . . echo. not fabulous dir; exit 1; }
18 gitscip-shell system . . git. diff --shortstat | grepscip-shell system . . grep. -q . && { echoscip-shell system . . echo. repo is dirty; exit 1; }
19 set -ex
20 sudoscip-shell system . . sudo. chown -R $USER .
21 chmodscip-shell system . . chmod. -R o+rX .
22 sudoscip-shell system . . sudo. python setup.py install
23 sudoscip-shell system . . sudo. chown -R jart .
24 gitscip-shell system . . git. clean -fdx
25 rmscip-shell system . . rm. -rf gh-pages
26 sphinx-build docs /tmp/fabulous-gh-pagesscip-shell filesystem . . `/tmp/fabulous-gh-pages`.
27 gitscip-shell system . . git. checkout gh-pages
28 cpscip-shell system . . cp. -R /tmp/fabulous-gh-pages/* .
29 cpscip-shell system . . cp. -R /tmp/fabulous-gh-pages/.doctreesscip-shell filesystem . . `/tmp/fabulous-gh-pages/.doctrees`. .
30 cpscip-shell system . . cp. /tmp/fabulous-gh-pages/.buildinfoscip-shell filesystem . . `/tmp/fabulous-gh-pages/.buildinfo`. .
31 gitscip-shell system . . git. add .
32 gitscip-shell system . . git. commit -m 'Rebuild Sphinx documentation'
33 gitscip-shell system . . git. push origin gh-pages
34 gitscip-shell system . . git. checkout master
35 rmscip-shell system . . rm. -rf /tmp/fabulous-gh-pagesscip-shell filesystem . . `/tmp/fabulous-gh-pages`.