chore: ensure the bump-version script modified the version.h file correctly
This commit is contained in:
		
					parent
					
						
							
								d51633e598
							
						
					
				
			
			
				commit
				
					
						0a4ddf4512
					
				
			
		
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -158,10 +158,11 @@ def update_version_h(versions, suffix): | ||||||
|       lines[i + 1] = '#define ATOM_MINOR_VERSION {0}\n'.format(versions[1]) |       lines[i + 1] = '#define ATOM_MINOR_VERSION {0}\n'.format(versions[1]) | ||||||
|       lines[i + 2] = '#define ATOM_PATCH_VERSION {0}\n'.format(versions[2]) |       lines[i + 2] = '#define ATOM_PATCH_VERSION {0}\n'.format(versions[2]) | ||||||
| 
 | 
 | ||||||
|  |       # We do +4 here to avoid the clang format comment | ||||||
|       if (suffix): |       if (suffix): | ||||||
|         lines[i + 3] = '#define ATOM_PRE_RELEASE_VERSION {0}\n'.format(suffix) |         lines[i + 4] = '#define ATOM_PRE_RELEASE_VERSION {0}\n'.format(suffix) | ||||||
|       else: |       else: | ||||||
|         lines[i + 3] = '// #define ATOM_PRE_RELEASE_VERSION\n' |         lines[i + 4] = '// #define ATOM_PRE_RELEASE_VERSION\n' | ||||||
| 
 | 
 | ||||||
|       with open(version_h, 'w') as f: |       with open(version_h, 'w') as f: | ||||||
|         f.write(''.join(lines)) |         f.write(''.join(lines)) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Samuel Attard
				Samuel Attard