ProductVersion | '):
line = f' ProductVersion | {version} | | \n'
f.write(line)
if (len(sys.argv) != 2):
print('Usage: set-version.py VERSION')
exit(1)
version = sys.argv[1]
_, minor, release = split_version(version)
if (not is_release(minor) and release != 0):
print(f'ERROR: for development version release number should be 0 but it\'s set to {release}')
exit(1)
print(f'Setting BOINC version to {version}...')
set_configure_ac(version)
set_version_h(version)
set_version_h_in(version)
set_version_log(version)
set_build_gradle(version)
set_vcpkg_json(version)
set_installshield(version)
if (os.name == 'posix' and sys.platform != 'darwin'):
print('Running autosetup...')
subprocess.call('./_autosetup -c', shell=True)
print('Done.')
|