Merged revisions 11715 via svnmerge from
[asterisk/asterisk.git] / build_tools / make_build_h
1 #!/bin/sh
2 HOSTNAME=`uname -n`
3 KERNEL=`uname -r`
4 MACHINE=`uname -m`
5 OS=`uname -s`
6 if [ `uname -s` = "SunOS" ]; then
7   USER=`/usr/xpg4/bin/id -un`
8 else
9   USER=`id -un`
10 fi
11 DATE=`date -u "+%Y-%m-%d %H:%M:%S"`
12 cat << END
13 /*
14  * build.h 
15  * Automatically generated
16  */
17 #define BUILD_HOSTNAME "${HOSTNAME}"
18 #define BUILD_KERNEL "${KERNEL}"
19 #define BUILD_MACHINE "${MACHINE}"
20 #define BUILD_OS "${OS}"
21 #define BUILD_DATE "${DATE} UTC"
22 #define BUILD_USER "${USER}"
23
24 END