mirror of https://github.com/sipwise/asterisk.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
388 B
21 lines
388 B
#!/bin/sh
|
|
HOSTNAME=`uname -n`
|
|
KERNEL=`uname -r`
|
|
MACHINE=`uname -m`
|
|
OS=`uname -s`
|
|
USER=`${ID} -un`
|
|
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
|