30f27bd09a
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r80330 | qwell | 2007-08-22 13:53:18 -0500 (Wed, 22 Aug 2007) | 7 lines Fix a few build issues in Solaris (and likely others). Use GREP and ID variables from autoconf. Reported to me in #asterisk-dev I forgot who reported this - sorry. :( ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@80331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 lines
388 B
Bash
Executable file
21 lines
388 B
Bash
Executable file
#!/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
|