Statistics
| Branch: | Tag: | Revision:

root / update_version.py @ 435bb7fb

History | View | Annotate | Download (1.7 kB)

1 778081b0 Christos Stavrakakis
#Copyright (C) 2010, 2011, 2012 GRNET S.A. All rights reserved.
2 778081b0 Christos Stavrakakis
#
3 778081b0 Christos Stavrakakis
#Redistribution and use in source and binary forms, with or
4 778081b0 Christos Stavrakakis
#without modification, are permitted provided that the following
5 778081b0 Christos Stavrakakis
#conditions are met:
6 778081b0 Christos Stavrakakis
#
7 778081b0 Christos Stavrakakis
#  1. Redistributions of source code must retain the above
8 778081b0 Christos Stavrakakis
#     copyright notice, this list of conditions and the following
9 778081b0 Christos Stavrakakis
#     disclaimer.
10 778081b0 Christos Stavrakakis
#
11 778081b0 Christos Stavrakakis
#  2. Redistributions in binary form must reproduce the above
12 778081b0 Christos Stavrakakis
#     copyright notice, this list of conditions and the following
13 778081b0 Christos Stavrakakis
#     disclaimer in the documentation and/or other materials
14 778081b0 Christos Stavrakakis
#     provided with the distribution.
15 778081b0 Christos Stavrakakis
#
16 778081b0 Christos Stavrakakis
#THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17 778081b0 Christos Stavrakakis
#OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 778081b0 Christos Stavrakakis
#WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 778081b0 Christos Stavrakakis
#PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20 778081b0 Christos Stavrakakis
#CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 778081b0 Christos Stavrakakis
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 778081b0 Christos Stavrakakis
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 778081b0 Christos Stavrakakis
#USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 778081b0 Christos Stavrakakis
#AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 778081b0 Christos Stavrakakis
#LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26 778081b0 Christos Stavrakakis
#ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 778081b0 Christos Stavrakakis
#POSSIBILITY OF SUCH DAMAGE.
28 778081b0 Christos Stavrakakis
#
29 778081b0 Christos Stavrakakis
#The views and conclusions contained in the software and
30 778081b0 Christos Stavrakakis
#documentation are those of the authors and should not be
31 778081b0 Christos Stavrakakis
#interpreted as representing official policies, either expressed
32 778081b0 Christos Stavrakakis
#or implied, of GRNET S.A.
33 778081b0 Christos Stavrakakis
34 778081b0 Christos Stavrakakis
import sys
35 778081b0 Christos Stavrakakis
try:
36 778081b0 Christos Stavrakakis
    from devflow import versioning
37 778081b0 Christos Stavrakakis
except ImportError:
38 ef67f714 Christos Stavrakakis
    raise RuntimeError("devflow is a build dependency")
39 778081b0 Christos Stavrakakis
40 778081b0 Christos Stavrakakis
41 778081b0 Christos Stavrakakis
def main():
42 778081b0 Christos Stavrakakis
    versioning.update_version()
43 778081b0 Christos Stavrakakis
44 778081b0 Christos Stavrakakis
45 778081b0 Christos Stavrakakis
if __name__ == "__main__":
46 778081b0 Christos Stavrakakis
    sys.exit(main())