diff options
author | albert-github <albert.tests@gmail.com> | 2015-12-09 14:56:41 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2015-12-09 14:56:41 (GMT) |
commit | 183f36fe97cb95636f1947c2c4be61f7b78f87e0 (patch) | |
tree | acb6fb0906e9069097ffd09aa21356b2dc52833b /src/version.py | |
parent | 12b28cf18d559d8b1010c8c712ea5557afdc1481 (diff) | |
download | Doxygen-183f36fe97cb95636f1947c2c4be61f7b78f87e0.zip Doxygen-183f36fe97cb95636f1947c2c4be61f7b78f87e0.tar.gz Doxygen-183f36fe97cb95636f1947c2c4be61f7b78f87e0.tar.bz2 |
Remove obsolete py files
Diffstat (limited to 'src/version.py')
-rwxr-xr-x | src/version.py | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/src/version.py b/src/version.py deleted file mode 100755 index a99ede3..0000000 --- a/src/version.py +++ /dev/null @@ -1,61 +0,0 @@ -# - -# script to read the version information from `../configure` -# relevant lines are starting with: -# `doxygen_version_major` -# `doxygen_version_minor` -# `doxygen_version_revision` -# `doxygen_version_mmn` -# the collected information is written to: `../VERSION` and `../src/version.cpp` -# -import sys -import os -# -# set 'default' values -# -major = 0 -minor = 0 -revision = 0 -mnt = 'NO' -configure = '../configure' -if len(sys.argv) > 2: - configure = sys.argv[2] -# -# open input file -# read file and get relevant information -# close -# -f = open(configure, 'r') -for line in f: - # check if line can match (saves 3 comparisons) - if (line.startswith('doxygen_version')): - if (line.startswith('doxygen_version_major')): - major = line.replace('doxygen_version_major=','') - elif (line.startswith('doxygen_version_minor')): - minor = line.replace('doxygen_version_minor=','') - elif (line.startswith('doxygen_version_revision')): - revision = line.replace('doxygen_version_revision=','') - elif (line.startswith('doxygen_version_mmn')): - mnt = line.replace('doxygen_version_mmn=','') -f.close() - -# strip superfluous '\n` -major = major.replace('\n','') -minor = minor.replace('\n','') -revision = revision.replace('\n','') -mnt = mnt.replace('\n','') -# -# open output files -# write relevant infomation -# close files -# -f1 = open('../VERSION','w') -f2 = open(os.path.join(sys.argv[1],'version.cpp'),'w') -if (mnt == 'NO'): - f1.write(major + '.' + minor + '.' + revision) - f2.write('char versionString[]="' + major + '.' + minor + '.' + revision + '";') -else: - f1.write(major + '.' + minor + '.' + revision + '-' + mnt) - f2.write('char versionString[]="' + major + '.' + minor + '.' + revision + '-' + mnt + '";') -f1.close() -f2.close() |