676116f2e2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 lines
385 B
Bash
Executable file
21 lines
385 B
Bash
Executable file
#!/bin/sh
|
|
HOSTNAME=`uname -n`
|
|
KERNEL=`uname -r`
|
|
MACHINE=`uname -m`
|
|
OS=`uname -s`
|
|
USER=`whoami`
|
|
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
|