summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRaul Cuza <raulcuza@gmail.com>2011-07-06 15:52:15 -0400
committerRaul Cuza <raulcuza@gmail.com>2011-07-06 15:52:15 -0400
commit7251e6f829b3a81ce281318d930c19429de71e81 (patch)
treec5aafd151dc93e332e17e43c3a1c8f81eb513241 /tools
parent1294f5b1a25791eeb906ecdd75d5a7f21de8a7fe (diff)
downloadbcfg2-7251e6f829b3a81ce281318d930c19429de71e81.tar.gz
bcfg2-7251e6f829b3a81ce281318d930c19429de71e81.tar.bz2
bcfg2-7251e6f829b3a81ce281318d930c19429de71e81.zip
Replace majorver with version_release.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/export2.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/export2.py b/tools/export2.py
index 770df5350..1beb9e628 100755
--- a/tools/export2.py
+++ b/tools/export2.py
@@ -129,7 +129,7 @@ E.G. 1.2.0pre1 is a valid version.
-- %s <%s> %s
- """ % (majorver, minorver, name, email, formatdate(localtime=True))
+ """ % (version_release, minorver, name, email, formatdate(localtime=True))
# write out the new debian changelog
@@ -150,11 +150,11 @@ E.G. 1.2.0pre1 is a valid version.
# Update redhat directory versions
if options.dryrun:
- print "*** Replace redhat/VERIONS content with '%s'." % majorver
+ print "*** Replace redhat/VERIONS content with '%s'." % version_release
print "*** Replace redhat/RELEASE content with '%s'." % minorver
else:
with open('redhat/VERSION', 'w') as f:
- f.write("%s\n" % majorver)
+ f.write("%s\n" % version_release)
f.close()
with open('redhat/RELEASE', 'w') as f:
f.write("0.0%s\n" % minorver)
@@ -190,7 +190,7 @@ E.G. 1.2.0pre1 is a valid version.
startswith=True,
dryrun=options.dryrun)
find_and_replace('doc/conf.py', 'release =',
- 'release = \'%s\'\n' % (majorver),
+ 'release = \'%s\'\n' % (version_release),
startswith=True,
dryrun=options.dryrun)
# update osx Makefile