~singpolyma/asterisk

ref: d430c5df6eed281cbad8ff1ee8f63c546c6ea72b asterisk/build_tools/make_build_h -rwxr-xr-x 536 bytes
d430c5dfJonas Smedegaard Include subdirs (not main dir) for FFmpeg paths 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
HOSTNAME=`uname -n | sed 's/\\\\/\\\\\\\\/g'`
KERNEL=`uname -r   | sed 's/\\\\/\\\\\\\\/g'`
MACHINE=`uname -m  | sed 's/\\\\/\\\\\\\\/g'`
OS=`uname -s`
USER=`id | awk -F")" '{print $1}'| awk -F"(" '{print $2}' | sed 's/\\\\/\\\\\\\\/g'`
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