part of a patch from Dan Eicher with some edits.
[blender-staging.git] / build_files / package_spec / build_debian.sh
index dda24eabee504fd839a85e2dd9c538d95755897f..1d35e4590e2f350c6ac702e133c5395a3243e201 100755 (executable)
@@ -11,7 +11,8 @@ cp -a build_files/package_spec/debian .
 
 
 # Get values from blender to use in debian/changelog.
-BLENDER_REVISION=$(svnversion)
+# value may be formatted: 35042:35051M
+BLENDER_REVISION=$(svnversion | cut -d: -f2 | tr -dc 0-9)
 
 blender_srcdir=$PWD
 blender_version=$(grep BLENDER_VERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | tr -dc 0-9)