mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 07:48:14 +00:00
major Makefile and build process improvements, including removal of all hardcoded paths (modules must now use run-time paths as they should) (bug #4116)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4,9 +4,8 @@ KERNEL=`uname -r`
|
||||
MACHINE=`uname -m`
|
||||
OS=`uname -s`
|
||||
USER=`whoami`
|
||||
VERSION=`cat .version`
|
||||
rm -f build.h
|
||||
cat > build.h << END
|
||||
DATE=`date --utc "+%Y-%m-%d %H:%M:%S"`
|
||||
cat << END
|
||||
/*
|
||||
* build.h
|
||||
* Automatically generated
|
||||
@@ -15,6 +14,7 @@ cat > build.h << END
|
||||
#define BUILD_KERNEL "${KERNEL}"
|
||||
#define BUILD_MACHINE "${MACHINE}"
|
||||
#define BUILD_OS "${OS}"
|
||||
#define BUILD_VERSION "${VERSION}"
|
||||
#define BUILD_DATE "${DATE}"
|
||||
#define BUILD_USER "${USER}"
|
||||
|
||||
END
|
||||
|
||||
Reference in New Issue
Block a user