![tilghman](/assets/img/avatar_default.png)
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: http://svn.digium.com/svn/asterisk/trunk@11716 f38db490-d61c-443f-a65b-d21fe96a405b
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
|