release.py: Use the Version class instead of a separate helper function.
release.py: Use the Version class instead of a separate helper function.

* tools/dist/release.py
  (Version): loosen the regex, add a couple of helper functions.
  (split_version): Remove.
  (build_env, roll_tarballs, post_candidates, write_news, write_announcement):
    Use the Version class.
  (main): Automatically convern incoming version strings to Version objects.


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1145774 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,wbond/subversion,wbond/subversion