diff options
author | Adrian Negreanu <groleo@gmail.com> | 2015-03-05 11:54:03 (GMT) |
---|---|---|
committer | Adrian Negreanu <groleo@gmail.com> | 2015-03-05 11:54:03 (GMT) |
commit | 75e8f4c80ab5c06a33eaaf7ec587ee35ed9c1b1a (patch) | |
tree | 64bae8408f17b54ffd289ada0746c4ea2e052dc8 /src | |
parent | 5e5615a9d2da8b923565c1bcadc9db48efbc75d0 (diff) | |
download | Doxygen-75e8f4c80ab5c06a33eaaf7ec587ee35ed9c1b1a.zip Doxygen-75e8f4c80ab5c06a33eaaf7ec587ee35ed9c1b1a.tar.gz Doxygen-75e8f4c80ab5c06a33eaaf7ec587ee35ed9c1b1a.tar.bz2 |
version.py pass configure file path as parameter
in case we're building out of tree
Diffstat (limited to 'src')
-rwxr-xr-x | src/version.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/version.py b/src/version.py index 003cf95..a99ede3 100755 --- a/src/version.py +++ b/src/version.py @@ -17,12 +17,15 @@ 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') +f = open(configure, 'r') for line in f: # check if line can match (saves 3 comparisons) if (line.startswith('doxygen_version')): |