Statistics
| Branch: | Tag: | Revision:

root / update_version.py @ 18a2af6d

History | View | Annotate | Download (1.7 kB)

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