Let's also include aclocal.m4
[asterisk-bristuff.git] / build_tools / make_build_h
blobb7dadfc33840bd71b5d3ba8b1cd46990891c56f4
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
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}"
20 END