mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Add -DVERSION flag for release version numbers
This commit is contained in:
		
							parent
							
								
									aca0710b9e
								
							
						
					
					
						commit
						173b338567
					
				
					 7 changed files with 19 additions and 64 deletions
				
			
		| 
						 | 
				
			
			@ -201,11 +201,7 @@ int main(int argc, char **argv) {
 | 
			
		|||
			framerate = atoi(optarg);
 | 
			
		||||
			break;
 | 
			
		||||
		case 'v':
 | 
			
		||||
#if defined SWAY_GIT_VERSION && defined SWAY_GIT_BRANCH && defined SWAY_VERSION_DATE
 | 
			
		||||
			fprintf(stdout, "sway version %s (%s, branch \"%s\")\n", SWAY_GIT_VERSION, SWAY_VERSION_DATE, SWAY_GIT_BRANCH);
 | 
			
		||||
#else
 | 
			
		||||
			fprintf(stdout, "version not detected\n");
 | 
			
		||||
#endif
 | 
			
		||||
			fprintf(stdout, "sway version " SWAY_VERSION "\n");
 | 
			
		||||
			exit(EXIT_SUCCESS);
 | 
			
		||||
			break;
 | 
			
		||||
		default:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue