summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-10-08 14:08:11 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-10-08 14:08:11 -0700
commitdd2cea4107b5c8b29121932967c6527781329266 (patch)
treeb14231cf509c5530ee56a9fb18357c5e63d36a54
parent4c614ac768dafd465d50f31bfebc0c3296881113 (diff)
downloadspack-dd2cea4107b5c8b29121932967c6527781329266.tar.gz
spack-dd2cea4107b5c8b29121932967c6527781329266.tar.bz2
spack-dd2cea4107b5c8b29121932967c6527781329266.tar.xz
spack-dd2cea4107b5c8b29121932967c6527781329266.zip
Add available versions to generated package list documentation.
-rw-r--r--lib/spack/docs/Makefile4
-rw-r--r--lib/spack/spack/cmd/info.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/spack/docs/Makefile b/lib/spack/docs/Makefile
index 4d71c2052e..e3068ea10c 100644
--- a/lib/spack/docs/Makefile
+++ b/lib/spack/docs/Makefile
@@ -42,12 +42,14 @@ gh-pages: _build/html
touch .nojekyll && \
git init && \
git add . && \
- git commit -m "Initial commit" && \
+ git commit -m "Spack Documentation" && \
git push -f $$root master:gh-pages && \
rm -rf .git
upload:
rsync -avz --rsh=ssh --delete _build/html/ cab:/usr/global/web-pages/lc/www/adept/docs/spack
+ git push -f origin gh-pages
+ git push -f github gh-pages
apidoc:
sphinx-apidoc -T -o . $(PYTHONPATH)/spack
diff --git a/lib/spack/spack/cmd/info.py b/lib/spack/spack/cmd/info.py
index c86dcac2f5..87d272dbc6 100644
--- a/lib/spack/spack/cmd/info.py
+++ b/lib/spack/spack/cmd/info.py
@@ -94,6 +94,9 @@ def info_rst():
print " * `Homepage <%s>`__" % pkg.homepage
print " * `%s/package.py <%s>`__" % (pkg.name, github_url(pkg))
print
+ if pkg.versions:
+ print "Versions:"
+ print " " + ", ".join(str(v) for v in reversed(sorted(pkg.versions)))
if pkg.dependencies:
print "Dependencies"
print " " + ", ".join("`%s`_" % d if d != "mpi" else d