mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Re-add the automatically generated version.h, so that modules can include for
making build time decisions for cross asterisk version compatibility git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										25
									
								
								build_tools/make_version_h
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										25
									
								
								build_tools/make_version_h
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| #!/bin/sh | ||||
| if [ ! -f ../.flavor ]; then | ||||
|     cat << END | ||||
| /* | ||||
|  * version.h  | ||||
|  * Automatically generated | ||||
|  */ | ||||
| #define ASTERISK_VERSION "${ASTERISKVERSION}" | ||||
| #define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM} | ||||
|  | ||||
| END | ||||
| else | ||||
|     aadkver=`cat ../.version` | ||||
|     aadkflavor=`cat ../.flavor` | ||||
|     cat << END | ||||
| /* | ||||
|  * version.h  | ||||
|  * Automatically generated | ||||
|  */ | ||||
| #define ASTERISK_VERSION "${ASTERISKVERSION} (${aadkflavor} ${aadkver})" | ||||
| #define ASTERISK_VERSION_NUM ${ASTERISKVERSIONNUM} | ||||
|  | ||||
| END | ||||
| fi | ||||
|  | ||||
		Reference in New Issue
	
	Block a user