mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r11715 | tilghman | 2006-03-03 11:13:37 -0600 (Fri, 03 Mar 2006) | 2 lines Bug 6638 - Solaris is starting to remind me of RedHat... ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
		
			
				
	
	
		
			25 lines
		
	
	
		
			459 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			459 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
HOSTNAME=`uname -n`
 | 
						|
KERNEL=`uname -r`
 | 
						|
MACHINE=`uname -m`
 | 
						|
OS=`uname -s`
 | 
						|
if [ `uname -s` = "SunOS" ]; then
 | 
						|
  USER=`/usr/xpg4/bin/id -un`
 | 
						|
else
 | 
						|
  USER=`id -un`
 | 
						|
fi
 | 
						|
DATE=`date -u "+%Y-%m-%d %H:%M:%S"`
 | 
						|
cat << END
 | 
						|
/*
 | 
						|
 * build.h 
 | 
						|
 * Automatically generated
 | 
						|
 */
 | 
						|
#define BUILD_HOSTNAME "${HOSTNAME}"
 | 
						|
#define BUILD_KERNEL "${KERNEL}"
 | 
						|
#define BUILD_MACHINE "${MACHINE}"
 | 
						|
#define BUILD_OS "${OS}"
 | 
						|
#define BUILD_DATE "${DATE} UTC"
 | 
						|
#define BUILD_USER "${USER}"
 | 
						|
 | 
						|
END
 |