![qwell](/assets/img/avatar_default.png)
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: http://svn.digium.com/svn/asterisk/trunk@80331 f38db490-d61c-443f-a65b-d21fe96a405b
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
|