Merged revisions 80330 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 USER=`${ID} -un`
7 DATE=`date -u "+%Y-%m-%d %H:%M:%S"`
8 cat << END
9 /*
10  * build.h 
11  * Automatically generated
12  */
13 #define BUILD_HOSTNAME "${HOSTNAME}"
14 #define BUILD_KERNEL "${KERNEL}"
15 #define BUILD_MACHINE "${MACHINE}"
16 #define BUILD_OS "${OS}"
17 #define BUILD_DATE "${DATE} UTC"
18 #define BUILD_USER "${USER}"
19
20 END