better handling of VERSION
This commit is contained in:
		
							parent
							
								
									2649e8d533
								
							
						
					
					
						commit
						1aa0cdb3d8
					
				
							
								
								
									
										6
									
								
								sent.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								sent.c
									
									
									
									
									
								
							@ -23,6 +23,10 @@
 | 
			
		||||
#include "util.h"
 | 
			
		||||
#include "drw.h"
 | 
			
		||||
 | 
			
		||||
#ifndef VERSION
 | 
			
		||||
#define VERSION "1"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
char *argv0;
 | 
			
		||||
 | 
			
		||||
/* macros */
 | 
			
		||||
@ -689,7 +693,7 @@ main(int argc, char *argv[])
 | 
			
		||||
 | 
			
		||||
	ARGBEGIN {
 | 
			
		||||
	case 'v':
 | 
			
		||||
		fprintf(stderr, "sent-"VERSION"\n");
 | 
			
		||||
		fprintf(stderr, "sent-%s\n", VERSION);
 | 
			
		||||
		return 0;
 | 
			
		||||
	default:
 | 
			
		||||
		usage();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user