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 "util.h"
 | 
				
			||||||
#include "drw.h"
 | 
					#include "drw.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef VERSION
 | 
				
			||||||
 | 
					#define VERSION "1"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
char *argv0;
 | 
					char *argv0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* macros */
 | 
					/* macros */
 | 
				
			||||||
@ -689,7 +693,7 @@ main(int argc, char *argv[])
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	ARGBEGIN {
 | 
						ARGBEGIN {
 | 
				
			||||||
	case 'v':
 | 
						case 'v':
 | 
				
			||||||
		fprintf(stderr, "sent-"VERSION"\n");
 | 
							fprintf(stderr, "sent-%s\n", VERSION);
 | 
				
			||||||
		return 0;
 | 
							return 0;
 | 
				
			||||||
	default:
 | 
						default:
 | 
				
			||||||
		usage();
 | 
							usage();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user