File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed
Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -73,23 +73,18 @@ while getopts ":API_KEY:FILENAME:ALT_URL:GIT_USERNAME:VERSION" arg; do
7373 case " ${arg} " in
7474 API_KEY)
7575 API_KEY=${OPTARG}
76- usage
7776 ;;
7877 ALT_URL)
7978 ALT_URL=${OPTARG}
80- usage
8179 ;;
8280 FILENAME)
8381 FILENAME=${OPTARG}
84- usage
8582 ;;
8683 GIT_USERNAME)
8784 GIT_USERNAME=${OPTARG}
88- usage
8985 ;;
9086 VERSION)
91- VERSION={OPTARG}
92- usage
87+ VERSION=${OPTARG}
9388 ;;
9489 esac
9590done
123118cd /python-dev
124119tox
125120
126- # Generate gh-pages and push them to git account (if git username is provided)
127- if [ ! -z ${GIT_USERNAME} ] && [ ! -z ${VERSION} ]; then
128- # clone python git repo
129- cd /
130- git clone
[email protected] :
${GIT_USERNAME} /python.git
131- cd python
132- git checkout origin/gh-pages -b gh-pages
133- git branch -d develop
134- # generate gh-pages and set ouput dir to git repo (gh-pages branch)
135- cd /python-dev
136- .tox/py27/bin/epydoc -v --no-private --no-frames --css epydoc.css -o /python rosette/* .py
137- cd /python
138- git add .
139- git commit -a -m " publish python apidocs ${VERSION} "
140- git push
141- fi
142-
143121exit ${retcode}
You can’t perform that action at this time.
0 commit comments