diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-01 19:13:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-01 19:13:58 +0400 |
commit | 3ddbb36fa7233acaeefadadaf03fe4e0fff9e568 (patch) | |
tree | a09b2c94e707b628e3b1c76772d80946fb77699d /doc/python_api | |
parent | 339c6c4a511f6c6f9384e2b39d9f6b5396e2d4ee (diff) |
modification to api docs so release point to:
http://www.blender.org/documentation/blender_python_api_2_57b_release
Development versions point to:
http://www.blender.org/documentation/blender_python_api_2_57_0
This way updates to api docs after release wont overwrite release docs.
Diffstat (limited to 'doc/python_api')
-rwxr-xr-x | doc/python_api/sphinx_doc_gen.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/python_api/sphinx_doc_gen.sh b/doc/python_api/sphinx_doc_gen.sh index c027db83831..052e8072ac8 100755 --- a/doc/python_api/sphinx_doc_gen.sh +++ b/doc/python_api/sphinx_doc_gen.sh @@ -12,9 +12,17 @@ SSH_UPLOAD="/data/www/vhosts/www.blender.org/documentation" # blender_python_api # "_".join(str(v) for v in bpy.app.version) # custom blender vars blender_srcdir=$(dirname $0)/../../ -blender_version=$(grep BLENDER_VERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | tr -dc 0-9) -blender_subversion=$(grep BLENDER_SUBVERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | tr -dc 0-9) -BLENDER_VERSION=$(expr $blender_version / 100)_$(expr $blender_version % 100)_$blender_subversion +blender_version=$(grep "BLENDER_VERSION\s" $blender_srcdir/source/blender/blenkernel/BKE_blender.h | awk '{print $3}') +blender_version_char=$(grep BLENDER_VERSION_CHAR $blender_srcdir/source/blender/blenkernel/BKE_blender.h | awk '{print $3}') +blender_version_cycle=$(grep BLENDER_VERSION_CYCLE $blender_srcdir/source/blender/blenkernel/BKE_blender.h | awk '{print $3}') +blender_subversion=$(grep BLENDER_SUBVERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | awk '{print $3}') + +if [ "$blender_version_cycle" == "release" ] +then + BLENDER_VERSION=$(expr $blender_version / 100)_$(expr $blender_version % 100)$blender_version_char"_release" +else + BLENDER_VERSION=$(expr $blender_version / 100)_$(expr $blender_version % 100)_$blender_subversion +fi SSH_UPLOAD_FULL=$SSH_UPLOAD/"blender_python_api_"$BLENDER_VERSION |