diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-07-20 15:42:41 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-07-20 15:42:41 -0400 |
commit | de413e7ae293f2b919e2e75369c1ecb8a0c83975 (patch) | |
tree | 143ea097ea9e740c48b62335d468e9b0543be7b3 /bin/docs_jwst.sh | |
download | astroconda-control-de413e7ae293f2b919e2e75369c1ecb8a0c83975.tar.gz |
Initial commit
Diffstat (limited to 'bin/docs_jwst.sh')
-rwxr-xr-x | bin/docs_jwst.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/bin/docs_jwst.sh b/bin/docs_jwst.sh new file mode 100755 index 0000000..1542cdd --- /dev/null +++ b/bin/docs_jwst.sh @@ -0,0 +1,36 @@ +#!/bin/bash +source /eng/ssb/auto/astroconda/include/midnight_special.sh +source /eng/ssb/auto/astroconda/include/conda_porcelain.sh +source /eng/ssb/auto/astroconda/include/texlive.sh + +porcelain_init + +pushd "$PORCELAIN_PREFIX" + porcelain_get_installer + porcelain_run_installer + + build_env="$(basename $PORCELAIN_PREFIX)" + depot=/eng/ssb/websites/ssbpublic/doc/jwst_git + + repo_conda=http://ssb.stsci.edu/conda-dev + repo_git=https://github.com/stsci-jwst/jwst + repo_git_branch=master + + conda create -n "$build_env" \ + --yes \ + --quiet \ + --override-channels \ + -c defaults \ + -c $repo_conda sphinx=1.3.5 jwst stsci.sphinxext + + source activate $build_env + + git clone "$repo_git" + pushd "$(basename $repo_git)" + git checkout $repo_git_branch + docs/mkdocs.sh -o "$depot" + popd +popd + +porcelain_deinit + |