mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	https://origsvn.digium.com/svn/asterisk/trunk ........ r200039 | lmadsen | 2009-06-11 08:15:09 -0400 (Thu, 11 Jun 2009) | 8 lines Fix path for .flavor and .version (issue #14737) Reported by: davidw Patches: flavor.patch uploaded by davidw (license 780) Tested by: davidw ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@200041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
		
			
				
	
	
		
			26 lines
		
	
	
		
			458 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			458 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/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
 | 
						|
 |