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