File: tag_release.py

package info (click to toggle)
blender 2.63a-1%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 108,940 kB
  • sloc: ansic: 781,340; cpp: 453,049; python: 133,391; xml: 4,140; sh: 573; makefile: 112; lisp: 69
file content (76 lines) | stat: -rw-r--r-- 2,298 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env python

REV_BLENDER = 44136
REV_EXTENSIONS = 2994
REV_LOCALE = 392

TAG_BLENDER = "blender-2.62-release"
TAG_EXTENSIONS = TAG_LOCALE = "2_62_release"

print("\n# Run these commands from the blender source dir:")

# -----------------------------------------------------------------------------
# Blender

print('svn cp '
      'https://svn.blender.org/svnroot/bf-blender/trunk@r%d '
      'https://svn.blender.org/svnroot/bf-blender/tags/%s '
      '-m "tagging blender release: %s, %d"' %
      (REV_BLENDER, TAG_BLENDER, TAG_BLENDER, REV_BLENDER))


# -----------------------------------------------------------------------------
# Extensions

print('svn cp '
      'https://svn.blender.org/svnroot/bf-extensions/trunk@r%d '
      'https://svn.blender.org/svnroot/bf-extensions/tags/%s '
      '-m "tagging blender release: %s, %d"' %
      (REV_EXTENSIONS, TAG_EXTENSIONS, TAG_EXTENSIONS, REV_EXTENSIONS)
      )


# -----------------------------------------------------------------------------
# Translations

print('svn cp '
      'https://svn.blender.org/svnroot/bf-translations/trunk@r%d '
      'https://svn.blender.org/svnroot/bf-translations/tags/%s '
      '-m "tagging blender release: %s, %d"' %
      (REV_LOCALE, TAG_LOCALE, TAG_LOCALE, REV_LOCALE),
      )


# -----------------------------------------------------------------------------
# Change externals

# switch a checkout of trunk into the tag o avoid a second checkout
# windows/osx may want to switch lib too.
print('svn sw '
      'https://svn.blender.org/svnroot/bf-blender/tags/%s/blender' %
      (TAG_BLENDER, )
      )

# Change the extensions location, we can ignore addons_contrib here.
print('svn propset svn:externals '
      '"addons https://svn.blender.org/svnroot/bf-extensions/tags/%s/py/scripts/addons" '
      'release/scripts ' %
      (TAG_EXTENSIONS, )
      )

print('svn propset svn:externals '
      '"locale https://svn.blender.org/svnroot/bf-translations/tags/%s/locale" '
      'release/datafiles' %
      (TAG_LOCALE, )
      )

print('svn ci '
      'release/scripts '
      'release/datafiles '
      '-m "tagging blender release: %s, %d"' %
      (TAG_BLENDER, REV_BLENDER)
      )


# switch back to trunk
print("svn sw https://svn.blender.org/svnroot/bf-blender/trunk/blender")