mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
move tools used during build into build_tools subdirectory
clean up Makefile headers git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5942 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
20
build_tools/make_build_h
Executable file
20
build_tools/make_build_h
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
HOSTNAME=`uname -n`
|
||||
KERNEL=`uname -r`
|
||||
MACHINE=`uname -m`
|
||||
OS=`uname -s`
|
||||
USER=`whoami`
|
||||
DATE=`date --utc "+%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}"
|
||||
#define BUILD_USER "${USER}"
|
||||
|
||||
END
|
||||
Reference in New Issue
Block a user